mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 21:17:45 +00:00
Mac: Whoops, lost legit Caps lock keypress events. Fixed.
This commit is contained in:
@@ -341,7 +341,8 @@ HandleCapsLock(unsigned short scancode,
|
||||
newMask = newMods & NSAlphaShiftKeyMask;
|
||||
|
||||
if (oldMask != newMask) {
|
||||
SDL_ToggleModState(KMOD_CAPS, newMask != 0);
|
||||
SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_CAPSLOCK);
|
||||
SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_CAPSLOCK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user