Skip to content

Commit

Permalink
IME switch not toggle menu when menu hide (#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
lededev authored Dec 10, 2024
1 parent 97df9cd commit 5b4d143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5b4d143

Please sign in to comment.