Created
May 27, 2009 18:58
-
-
Save stevestreza/118829 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)sendEvent:(NSEvent *)anEvent{ | |
| //This works around an AppKit bug, where key up events while holding | |
| //down the command key don't get sent to the key window. | |
| if([anEvent type] == NSKeyUp && ([anEvent modifierFlags] & NSCommandKeyMask)){ | |
| [[self keyWindow] sendEvent:anEvent]; | |
| }else{ | |
| [super sendEvent:anEvent]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment