Author: manolo
Date: 2012-12-23 20:06:46 -0800 (Sun, 23 Dec 2012)
New Revision: 9773
Log:
Handle special case for multiline input with 'old tab behavior' where tab is
entered as a character:
didn't work when selection had been done with ctrl-A.
Modified:
branches/branch-1.3/src/Fl_Input.cxx
Modified: branches/branch-1.3/src/Fl_Input.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Input.cxx 2012-12-20 16:00:04 UTC (rev
9772)
+++ branches/branch-1.3/src/Fl_Input.cxx 2012-12-24 04:06:46 UTC (rev
9773)
@@ -617,7 +617,8 @@
&& !Fl::event_state(FL_SHIFT) // no shift?
&& !tab_nav() // with tab
navigation disabled?
&& input_type() == FL_MULTILINE_INPUT // with a multiline
input?
- && (mark()==0 && position()==size())) { // while entire field
selected?
+ && size() > 0 // non-empty field?
+ && ((mark()==0 && position()==size()) || (position()==0 &&
mark()==size()))) {// while entire field selected?
// Set cursor to the end of the selection...
if (mark() > position())
position(mark());
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit