Author: manolo
Date: 2011-04-03 10:31:07 -0700 (Sun, 03 Apr 2011)
New Revision: 8557
Log:
Mac OS: removed duplicate FL_KEYBOARDS events with function and modifier keys.
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-04-02 02:41:00 UTC (rev 8556)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-04-03 17:31:07 UTC (rev 8557)
@@ -1639,8 +1639,8 @@
}
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent
{
- int err = cocoaKeyboardHandler(theEvent);
- return (err ? YES : NO);
+ cocoaKeyboardHandler(theEvent);
+ return YES;
}
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent
{
@@ -1819,11 +1819,11 @@
}
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();
}
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit