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:
parent
32df4755c4
commit
a86df5ede6
@ -1639,8 +1639,8 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
|
|||||||
}
|
}
|
||||||
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent
|
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
int err = cocoaKeyboardHandler(theEvent);
|
cocoaKeyboardHandler(theEvent);
|
||||||
return (err ? YES : NO);
|
return YES;
|
||||||
}
|
}
|
||||||
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
|
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
@ -1819,11 +1819,11 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Fl::handle(FL_PASTE, window);
|
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();
|
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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user