]> git.tdb.fi Git - libs/gltk.git/commitdiff
Interpret shift+tab as NAV_PREVIOUS
authorMikko Rasa <tdb@tdb.fi>
Wed, 11 Sep 2019 15:43:11 +0000 (18:43 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 11 Sep 2019 15:43:11 +0000 (18:43 +0300)
source/systemkeyboardinput.cpp

index a99183231f08e66203e5d16112e9cfbacdecbe3c..862dd2926d88a5b0538cfdb5fb1d41201ec4b3e9 100644 (file)
@@ -36,7 +36,7 @@ bool SystemKeyboardInput::key_press(unsigned key)
        case Input::KEY_RIGHT: return root.navigate(NAV_RIGHT);
        case Input::KEY_UP: return root.navigate(NAV_UP);
        case Input::KEY_DOWN: return root.navigate(NAV_DOWN);
-       case Input::KEY_TAB: return root.navigate(NAV_NEXT);
+       case Input::KEY_TAB: return root.navigate((modifier_state&MOD_SHIFT) ? NAV_PREVIOUS : NAV_NEXT);
        case Input::KEY_SPACE: return root.navigate(NAV_ACTIVATE);
        case Input::KEY_ENTER: return root.navigate(NAV_ACCEPT);
        case Input::KEY_ESC: return root.navigate(NAV_CANCEL);