From eafeac5f985bab4e85c1a385301c5397827e493b Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 15 Dec 2010 13:02:36 +0000 Subject: 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 --- src/Fl_Input.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/Fl_Input.cxx') 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) -- cgit v1.2.3