diff options
| author | Manolo Gouy <Manolo> | 2011-06-03 09:12:07 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-06-03 09:12:07 +0000 |
| commit | 965e81fc87ad15cf34aa9aba76e7eb6ba0eec400 (patch) | |
| tree | e1edf5c2ad1eb61c454dfcbd38d0ec2dcd35a9a5 | |
| parent | b87078e02d64d1c6ad4e193bdff38a1a1244380d (diff) | |
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
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index c124db7db..922083ce3 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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(); } |
