Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Mac: Whoops, lost legit Caps lock keypress events. Fixed.
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
src/video/cocoa/SDL_cocoakeyboard.m
|
@@ -341,7 +341,8 @@ - (NSArray *)validAttributesForMarkedText |
|
|
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); |
|
|
} |
|
|
} |
|
|
|
|
|