mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Mac: Whoops, lost legit Caps lock keypress events. Fixed.
This commit is contained in:
parent
fd6b435c6a
commit
51c1d69d13
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue