Fix for command key presses + a letter not triggering keyUp. Fix by Katharine Berry.

master
Geenz 2013-03-23 01:05:21 -04:00
parent 64c0455db5
commit 6c200a94f7
1 changed files with 8 additions and 0 deletions

View File

@ -283,6 +283,14 @@
[[self inputContext] handleEvent:theEvent];
uint keycode = [theEvent keyCode];
callKeyDown(keycode, mModifiers);
// OS X intentionally does not send us key-up information on cmd-key combinations.
// This behaviour is not a bug, and only applies to cmd-combinations (no others).
// Since SL assumes we receive those, we fake it here.
if (mModifiers & NSCommandKeyMask)
{
callKeyUp([theEvent keyCode], mModifiers);
}
}
- (void)flagsChanged:(NSEvent *)theEvent {