Skip to content

Commit

Permalink
Fix the issue where the context menu does not appear when you press S…
Browse files Browse the repository at this point in the history
…hift+F10.
  • Loading branch information
sdottaka committed Nov 3, 2024
1 parent 13ed9a0 commit d4ece2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ BOOL CMenuBar::PreTranslateMessage(MSG* pMsg)
return FALSE;
if (pMsg->message == WM_SYSKEYDOWN || pMsg->message == WM_SYSKEYUP)
{
if (pMsg->wParam == VK_F10 || pMsg->wParam == VK_MENU)
const BOOL bShift = ::GetAsyncKeyState(VK_SHIFT) & 0x8000;
if ((!bShift && pMsg->wParam == VK_F10) || pMsg->wParam == VK_MENU)
{
if (pMsg->message == WM_SYSKEYDOWN)
{
Expand Down

0 comments on commit d4ece2b

Please sign in to comment.