From 1bdc31269d34063fa6714d70ae38b10ec3c27899 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 21 Dec 2018 15:56:58 +0200 Subject: [PATCH] Reject all Alt+ windows system menu key shortcuts because invalid shortcuts may generate annoying beep sounds in magic mouse mode. --- od-win32/win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 34ad3855..718e4d0f 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -2319,6 +2319,9 @@ static LRESULT CALLBACK AmigaWindowProc(HWND hWnd, UINT message, WPARAM wParam, #endif return TRUE; + case WM_MENUCHAR: + return MNC_CLOSE << 16; + case WM_SYSCOMMAND: switch (wParam & 0xfff0) // Check System Calls { @@ -2571,6 +2574,7 @@ static LRESULT CALLBACK MainWindowProc (HWND hWnd, UINT message, WPARAM wParam, case WM_ACTIVATEAPP: case WM_DROPFILES: case WM_ACTIVATE: + case WM_MENUCHAR: case WM_SYSCOMMAND: case WM_KEYUP: case WM_SYSKEYUP: -- 2.47.3