Author: manolo Date: 2011-06-03 02:12:07 -0700 (Fri, 03 Jun 2011) New Revision: 8773 Log: Fixes bug entitled "Fl::event_text() omitted for keyups?" in fltk.development.
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-06-02 08:06:09 UTC (rev 8772) +++ branches/branch-1.3/src/Fl_cocoa.mm 2011-06-03 09:12:07 UTC (rev 8773) @@ -1731,6 +1731,8 @@ Fl_Window *window = (Fl_Window*)[(FLWindow*)[theEvent window] getFl_Window]; Fl::first_window(window); cocoaKeyboardHandler(theEvent); + NSString *s = [theEvent characters]; + if ([s length] >= 1) [FLView prepareEtext:[s substringToIndex:1]]; Fl::handle(FL_KEYUP,window); fl_unlock_function(); } _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
