Skip to content

Commit

Permalink
Mac: Whoops, lost legit Caps lock keypress events. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 28, 2015
1 parent fd6b435 commit 51c1d69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 51c1d69

Please sign in to comment.