From 9314fc2d5ebe1afdc099cdfb1268ee1b22297b07 Mon Sep 17 00:00:00 2001 From: retr0s4ge Date: Wed, 15 Aug 2018 00:33:22 +0200 Subject: [PATCH] (Windows Frontend) Ignore the menu key if the main window has no menu --- desmume/src/frontend/windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index b413c45ed..241ba08f7 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -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);