DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1952
Version: 1.1.8 final


On OS X 10.4.10, if the first key pressed is a modifier, the FL_KEYDOWN
never makes it.  The FL_KEYUP does though.

Fl_max.cxx has on line 1101 in carbonKeyboardHandler:

  if ( prevMods == 0xffffffff ) prevMods = mods;

Since prevMods is initialized to that value, if the first keyboard event
is a modifier, then it sets prevMods to mods and detects no change in
modifier state.

Removing the line and initializing prevMods to 0 fixes it.  I'm not sure
what the original code was doing, so hopefully this doesn't break
something else.


Link: http://www.fltk.org/str.php?L1952
Version: 1.1.8 final

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to