DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2664
Version: 1.3-current
The flagsChanged code path on OS X set Fl::e_keysym but forgets
Fl::e_original_keysym, causing issues as that will then retain whatever
value the last key press had.
Trivial patch attached.
Link: http://www.fltk.org/str.php?L2664
Version: 1.3-current
diff -up fltk-1.3.x-r8772/src/Fl_cocoa.mm.orig fltk-1.3.x-r8772/src/Fl_cocoa.mm
--- fltk-1.3.x-r8772/src/Fl_cocoa.mm.orig 2011-06-16 10:59:17.403122205
+0200
+++ fltk-1.3.x-r8772/src/Fl_cocoa.mm 2011-06-16 10:59:27.259048663 +0200
@@ -1832,7 +1832,7 @@ static void q_set_window_title(NSWindow
if ( tMods )
{
unsigned short keycode = [theEvent keyCode];
- Fl::e_keysym = macKeyLookUp[keycode & 0x7f];
+ Fl::e_keysym = Fl::e_original_keysym = macKeyLookUp[keycode & 0x7f];
if ( Fl::e_keysym )
sendEvent = ( prevMods<mods ) ? FL_KEYBOARD : FL_KEYUP;
Fl::e_length = 0;
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs