Skip to content

Commit

Permalink
Have "Disable Windows Keys" also disable Alt, so it can be mapped.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jun 25, 2024
1 parent dd21845 commit 7b737b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Windows/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ namespace MainWindow
// doesn't work on Vista or higher.
case WM_SYSCOMMAND:
{
// Disable Alt key for menu if "Ignore Windows Key" is on (likely related)
if (g_Config.bIgnoreWindowsKey && wParam == SC_KEYMENU && (lParam >> 16) <= 0) {
return 0;
}
if (g_keepScreenBright) {
switch (wParam) {
case SC_SCREENSAVE:
Expand Down

0 comments on commit 7b737b0

Please sign in to comment.