[BROWSEUI] AutoComplete: Close before opening IME candidates (#7115)

The auto-complete window and
the IME candidate window were
conflicting each other.
JIRA issue: CORE-19268
Call HideDropDown method
when processing
IMN_OPENCANDIDATE message.
This commit is contained in:
Katayama Hirofumi MZ 2024-07-10 00:05:28 +09:00 committed by GitHub
parent 2b3c2957e6
commit d7289cf2e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,7 @@
*/
#include "precomp.h"
#include <imm.h> // For IMN_OPENCANDIDATE
#include <process.h> // _beginthreadex
/*
@ -344,6 +345,10 @@ LRESULT CAutoComplete::EditWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
if (hwndGotFocus != m_hwndEdit && hwndGotFocus != m_hWnd)
HideDropDown();
break;
case WM_IME_NOTIFY:
if (wParam == IMN_OPENCANDIDATE)
HideDropDown();
break;
case WM_SETTEXT:
if (!m_bInSetText)
HideDropDown(); // it's mechanical WM_SETTEXT