mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 15:46:52 +08:00
r.9800 was a bad move; going back.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+5
-4
@@ -1795,12 +1795,13 @@ static void cocoaKeyboardHandler(NSEvent *theEvent)
|
|||||||
fl_lock_function();
|
fl_lock_function();
|
||||||
cocoaKeyboardHandler(theEvent);
|
cocoaKeyboardHandler(theEvent);
|
||||||
in_key_event = YES;
|
in_key_event = YES;
|
||||||
if (! [[self performSelector:inputContextSEL] handleEvent:theEvent] ) {
|
NSUInteger mods = [theEvent modifierFlags];
|
||||||
[self doCommandBySelector:@selector(noop:)];
|
BOOL handled = YES;
|
||||||
}
|
if ( (mods & NSAlternateKeyMask) && (mods & NSCommandKeyMask) ) [self doCommandBySelector:@selector(noop:)];
|
||||||
|
else handled = [[self performSelector:inputContextSEL] handleEvent:theEvent];
|
||||||
in_key_event = NO;
|
in_key_event = NO;
|
||||||
fl_unlock_function();
|
fl_unlock_function();
|
||||||
return YES;
|
return handled;
|
||||||
}
|
}
|
||||||
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
|
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user