Fixes bug entitled "Fl::event_text() omitted for keyups?" in fltk.development.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-06-03 09:12:07 +00:00
parent b87078e02d
commit 965e81fc87
1 changed files with 2 additions and 0 deletions

View File

@ -1731,6 +1731,8 @@ static void q_set_window_title(NSWindow *nsw, const char * name, const char *mi
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();
}