dronten wrote:
> 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.
I'd like to see it go myself, as TAB + SHIFT-TAB seem universally
adopted and sufficient for cycling focus.
The arrow keys being able to shift focus is possibly a hold over
from the days before TAB / SHIFT-TAB was considered the "universal way"
to rotate focus through widgets.
Others should probably weigh in on this, as there may be other reasons,
but it is kinda nutty how you can right/left arrow off the ends of long
input lines, and end up in another widget.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk