Mac OS: removed duplicate FL_KEYBOARDS events with function and modifier keys.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-04-03 17:31:07 +00:00
parent 32df4755c4
commit a86df5ede6

View File

@ -1639,8 +1639,8 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
}
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent
{
int err = cocoaKeyboardHandler(theEvent);
return (err ? YES : NO);
cocoaKeyboardHandler(theEvent);
return YES;
}
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
{
@ -1819,11 +1819,11 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
}
else {
Fl::handle(FL_PASTE, window);
}
// for some reason, the window does not redraw until the next mouse move or button push
// sending a 'redraw()' or 'awake()' does not solve the issue!
Fl::flush();
}
fl_unlock_function();
// for some reason, the window does not redraw until the next mouse move or button push
// sending a 'redraw()' or 'awake()' does not solve the issue!
Fl::flush();
}
}