On 08.01.2008, at 04:17, Greg Ercolano wrote: > Christophe Geuzaine wrote: >> PS: clearing up the event state with >> >> Fl::e_state = 0; >> >> at the end of the callback fixes the problem. But this is a pretty >> ugly >> hack... > > I think there might be a realtime way to check the actual > event key states, which can then be used to resync FLTK's > e_state value after the native OS's chooser is closed down.
You could call mods_to_e_state(GetCurrentKeyModifiers()); in Fl_mac.cxx However the function is static (for a good reason). > Assuming that works, I can probably incorporate that into > the FNFC widget just after the widget is closed > to ensure FLTK's internal key states are kept in sync with reality. We could open up something like "Fl::sync_modifiers()", but that's all quite a hack.... . ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

