Have "Disable Windows Keys" also disable Alt, so it can be mapped.

This commit is contained in:
Henrik Rydgård 2024-06-25 22:01:58 +02:00
parent 5d365e262b
commit 2ddba06312

View File

@ -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: