summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-04-03 17:31:07 +0000
committerManolo Gouy <Manolo>2011-04-03 17:31:07 +0000
commita86df5ede60c0e0c3f46fe897ad10824e8133a87 (patch)
tree020471e15c14b1233a2d323dab6dd4f27fb07c1b /src
parent32df4755c45711bc9cac74763f89c4766da56f7e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 272ec7c22..53b1d5fb0 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -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();
}
}