Simplification of the - (BOOL)[FLView performKeyEquivalent:(NSEvent*)theEvent] method.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2013-01-18 16:34:58 +00:00
parent 81da29ff12
commit a0ef82b7dc
+4 -5
View File
@@ -1795,13 +1795,12 @@ static void cocoaKeyboardHandler(NSEvent *theEvent)
fl_lock_function(); fl_lock_function();
cocoaKeyboardHandler(theEvent); cocoaKeyboardHandler(theEvent);
in_key_event = YES; in_key_event = YES;
NSUInteger mods = [theEvent modifierFlags]; if (! [[self performSelector:inputContextSEL] handleEvent:theEvent] ) {
BOOL handled = YES; [self doCommandBySelector:@selector(noop:)];
if ( (mods & NSAlternateKeyMask) && (mods & NSCommandKeyMask) ) [self doCommandBySelector:NULL]; }
else handled = [[self performSelector:inputContextSEL] handleEvent:theEvent];
in_key_event = NO; in_key_event = NO;
fl_unlock_function(); fl_unlock_function();
return handled; return YES;
} }
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent - (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
{ {