Skip to content

Commit 7b737b0

Browse files
committed
Have "Disable Windows Keys" also disable Alt, so it can be mapped.
1 parent dd21845 commit 7b737b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Windows/MainWindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,10 @@ namespace MainWindow
10931093
// doesn't work on Vista or higher.
10941094
case WM_SYSCOMMAND:
10951095
{
1096+
// Disable Alt key for menu if "Ignore Windows Key" is on (likely related)
1097+
if (g_Config.bIgnoreWindowsKey && wParam == SC_KEYMENU && (lParam >> 16) <= 0) {
1098+
return 0;
1099+
}
10961100
if (g_keepScreenBright) {
10971101
switch (wParam) {
10981102
case SC_SCREENSAVE:

0 commit comments

Comments
 (0)