From a86df5ede60c0e0c3f46fe897ad10824e8133a87 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 3 Apr 2011 17:31:07 +0000 Subject: 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 --- src/Fl_cocoa.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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(); } } -- cgit v1.2.3