On 15.12.2010 01:59, Greg Ercolano wrote: > Oh, it looks like we have (b) already: > > Fl::option(OPTION_ARROW_FOCUS) > > ..which is documented as: > > /// When switched on, moving the text cursor beyond the start or end of > /// a text in a text widget will change focus to the next text widgt. > /// When switched off, the cursor will stop at the end of the text. > /// Pressing Tab or Ctrl-Tab will advance the keyboard focus. > > I vaguely remember this being discussed recently, and noticed it now > while testing my mods to Fl_Input.. neat!
Yes, this is already there, but I was surprised that I discovered recently that the old macro NORMAL_INPUT_MOVE was still in use in Fl_Input.cxx and Fl_Text_Editor.cxx. Greg, I fixed these by removing the obsolete and unused macro from Fl_Text_Editor and by redefining it to use Fl::option(..) with some comments that should make the values clear. I hope that this doesn't break anything in your current work, but you might consider to change this as you need for the input key handling. Thanks for your work on changing the key bindings! > It might stand to reason therefor, in the spirit of this flag > there should maybe be an OPTION_STRICT_TAB_FOCUS (or some such) > which would handle (a), but in our case, having the default be off > for 1.3, with release notes indicating the default would be 'on' > in a future 1.4 (as per Albrecht's suggestion in this thread). If it's easy for you to incorporate an option (IIRC you mentioned that this would only be a few lines of code), then I wouldn't object to add an option in FLTK 1.3... Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
