diff --git a/windows/keyboard.c b/windows/keyboard.c index 62d5cbb28ed..a4eed119a21 100644 --- a/windows/keyboard.c +++ b/windows/keyboard.c @@ -274,6 +274,7 @@ static void KEYBOARD_Init(void) /* Now store one keycode for each modifier. Used to simulate keypresses. */ kcControl = TSXKeysymToKeycode(display, XK_Control_L); kcAlt = TSXKeysymToKeycode(display, XK_Alt_L); + if (!kcAlt) kcAlt = TSXKeysymToKeycode(display, XK_Meta_L); kcShift = TSXKeysymToKeycode(display, XK_Shift_L); kcNumLock = TSXKeysymToKeycode(display, XK_Num_Lock); kcCapsLock = TSXKeysymToKeycode(display, XK_Caps_Lock);