summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Input.cxx4
-rw-r--r--src/Fl_Input_.cxx1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx
index b0d656e2c..d0e897a21 100644
--- a/src/Fl_Input.cxx
+++ b/src/Fl_Input.cxx
@@ -538,7 +538,7 @@ int Fl_Input::handle_key() {
// tab handled as a normal insertable character.
//
if (mods==0 && !shift // Tab?
- //// PROPOSED && !tab_nav() // old tab behavior enabled?
+ && !tab_nav() // old tab behavior enabled?
&& multiline) { // multiline input?
break; // insert tab character
}
@@ -614,7 +614,7 @@ int Fl_Input::handle(int event) {
//
if (Fl::event_key() == FL_Tab // Tab key?
&& !Fl::event_state(FL_SHIFT) // no shift?
- //// PROPOSED && !tab_nav() // with tab navigation disabled?
+ && !tab_nav() // with tab navigation disabled?
&& input_type() == FL_MULTILINE_INPUT // with a multiline input?
&& (mark()==0 && position()==size())) { // while entire field selected?
// Set cursor to the end of the selection...
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index a0438356c..2c4e5336c 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -1059,6 +1059,7 @@ Fl_Input_::Fl_Input_(int X, int Y, int W, int H, const char* l)
maximum_size_ = 32767;
shortcut_ = 0;
set_flag(SHORTCUT_LABEL);
+ tab_nav(1);
}
/**