diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-12-15 13:02:36 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-12-15 13:02:36 +0000 |
| commit | eafeac5f985bab4e85c1a385301c5397827e493b (patch) | |
| tree | 0cf77ec0bffe531f3f0a97303fac669faed40cd3 /src/Fl_Input.cxx | |
| parent | 113c9df703847457c0af1668236c707f3c28cdd4 (diff) | |
Redefined NORMAL_INPUT_MOVE in src/Fl_Input.cxx to reflect the new option
Fl::option(Fl::OPTION_ARROW_FOCUS). Maybe this could improved, but this is
the shortest way to make the option work always.
Improved tooltips in test/preferences.fl for users and system managers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input.cxx')
| -rw-r--r-- | src/Fl_Input.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index 928398c14..aee5f0510 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -62,11 +62,19 @@ int Fl_Input::shift_up_down_position(int p) { return up_down_position(p, Fl::event_state(FL_SHIFT)); } -// If you define this symbol as zero you will get the peculiar fltk +// Old text from FLTK 1.1 for reference: +// If you define NORMAL_INPUT_MOVE as zero you will get the peculiar fltk // behavior where moving off the end of an input field will move the // cursor into the next field: // define it as 1 to prevent cursor movement from going to next field: -#define NORMAL_INPUT_MOVE 0 +// +// Note: this has been replaced by Fl::option(Fl::OPTION_ARROW_FOCUS) +// in FLTK 1.3. This option has "inverted" values: +// 1 = Arrow keys move focus (previously 0) +// 0 = Arrow keys don't move focus (previously 1) +// Hence we define ... +// +#define NORMAL_INPUT_MOVE (Fl::option(Fl::OPTION_ARROW_FOCUS) ? 0 : 1) #define ctrl(x) ((x)^0x40) |
