Fix for command key presses + a letter not triggering keyUp. Fix by Katharine Berry.
parent
64c0455db5
commit
6c200a94f7
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue