From 5b4d14358cc32ac8a3984afcbfafd24102f47ade Mon Sep 17 00:00:00 2001 From: lededev <30518126+lededev@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:51:04 +0800 Subject: [PATCH] IME switch not toggle menu when menu hide (#2572) --- Src/MenuBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/MenuBar.cpp b/Src/MenuBar.cpp index dcb7cf9188a..0ee2b2568a2 100644 --- a/Src/MenuBar.cpp +++ b/Src/MenuBar.cpp @@ -382,7 +382,7 @@ BOOL CMenuBar::PreTranslateMessage(MSG* pMsg) if (pMsg->message == WM_SYSKEYDOWN || pMsg->message == WM_SYSKEYUP) { const BOOL bShift = ::GetAsyncKeyState(VK_SHIFT) & 0x8000; - if ((!bShift && pMsg->wParam == VK_F10) || pMsg->wParam == VK_MENU) + if (!bShift && (pMsg->wParam == VK_F10 || pMsg->wParam == VK_MENU)) { if (pMsg->message == WM_SYSKEYDOWN) {