(Windows Frontend) Ignore the menu key if the main window has no menu

This commit is contained in:
retr0s4ge 2018-08-15 00:33:22 +02:00
parent 775e3ae91a
commit 9314fc2d5e
1 changed files with 2 additions and 0 deletions

View File

@ -5232,6 +5232,8 @@ DOKEYDOWN:
if(wParam != VK_PAUSE)
break;
case WM_SYSKEYUP:
if (wParam == VK_MENU && GetMenu(hwnd) == NULL)
return 0;
case WM_CUSTKEYUP:
{
int modifiers = GetModifiers(wParam);