From bbfc5bb74ab0bf2affec88cb47609fbe1e40b59c Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 31 Oct 2020 13:08:56 +0200 Subject: [PATCH] Disable window default menu (ALT+Space) if input is captured. --- od-win32/win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3