> >> When text cursor moves past the end or beginning, using the left and right > >> arrow keys, the input widget will lose focus to the next/previous widget. > >> Should it do that? I have tried a few applications in windows and > >> linux/gtk and they do not shift focus. Personally I would like the cursor > >> to stop when I come to the end of a line. > >> > >> I have fixed that for me with the following change in "int > >> Fl_Input_::position(int p, int m)" > >> I replaced "if (p == position_ && m == mark_) return 0;" > >> with "if (p == position_ && m == mark_) return 1;" > > > I've always thought it odd, but I believe it's intentional behavior. > > BTW, you can disable it without changing FLTK's source code > by just subclassing Fl_Input and making your own handle() method, eg: > http://fltk.org/newsgroups.php?gfltk.general+v:17715
That feels like overkill. Also you have to subclass all the other input widgets. An extra property flag could do it if current behaviour should be the default. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

