From: Toni Wilen Date: Sat, 31 Oct 2020 11:08:56 +0000 (+0200) Subject: Disable window default menu (ALT+Space) if input is captured. X-Git-Tag: 4900~269 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=bbfc5bb74ab0bf2affec88cb47609fbe1e40b59c;p=francis%2Fwinuae.git Disable window default menu (ALT+Space) if input is captured. --- diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 2eda4d42..a666bfeb 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -2429,6 +2429,10 @@ static LRESULT CALLBACK AmigaWindowProc(HWND hWnd, UINT message, WPARAM wParam, monitor_off = 1; break; + case SC_KEYMENU: + if (HIWORD(lParam) <= 0 && isfocus() > 1) + return 0; + break; default: { LRESULT lr;