diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-02 16:17:04 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-02 16:17:04 +0000 |
| commit | 75b6b221ce1c88905b1485f0e25ab3880982efc4 (patch) | |
| tree | 6a34d2ba5621b8e8c920f2832707ae339a15a6c5 /src/Fl_Input.cxx | |
| parent | 836d2fac260c861106e0d96203bea4a04c9dd2d2 (diff) | |
FileIcon, FileBrowser, FileChooser stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input.cxx')
| -rw-r--r-- | src/Fl_Input.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index c4950f4d9..6dea29917 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input.cxx,v 1.10.2.15 2001/01/28 06:57:33 spitzak Exp $" +// "$Id: Fl_Input.cxx,v 1.10.2.15.2.1 2001/08/02 16:17:04 easysw Exp $" // // Input widget for the Fast Light Tool Kit (FLTK). // @@ -239,7 +239,14 @@ int Fl_Input::handle(int event) { break; case FL_KEYBOARD: - return handle_key(); + if (Fl::event_key() == FL_Tab && mark() != position()) { + // Set the current cursor position to the end of the selection... + if (mark() > position()) + position(mark()); + else + position(position()); + return (1); + } else return handle_key(); case FL_PUSH: if (Fl::focus() != this) { @@ -277,5 +284,5 @@ Fl_Input::Fl_Input(int x, int y, int w, int h, const char *l) } // -// End of "$Id: Fl_Input.cxx,v 1.10.2.15 2001/01/28 06:57:33 spitzak Exp $". +// End of "$Id: Fl_Input.cxx,v 1.10.2.15.2.1 2001/08/02 16:17:04 easysw Exp $". // |
