Skip to content
Permalink
Browse files

Mac: Whoops, lost legit Caps lock keypress events. Fixed.

  • Loading branch information
icculus committed Dec 28, 2015
1 parent fd6b435 commit 51c1d69d13939e606675843ecff0026f06ecdf08
Showing with 2 additions and 1 deletion.
  1. +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);
}
}

0 comments on commit 51c1d69

Please sign in to comment.