From: Mikko Rasa Date: Wed, 11 Sep 2019 15:43:11 +0000 (+0300) Subject: Interpret shift+tab as NAV_PREVIOUS X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=13efe34eae11be0d3a16522bcf63b21e754c8297;p=libs%2Fgltk.git Interpret shift+tab as NAV_PREVIOUS --- diff --git a/source/systemkeyboardinput.cpp b/source/systemkeyboardinput.cpp index a991832..862dd29 100644 --- a/source/systemkeyboardinput.cpp +++ b/source/systemkeyboardinput.cpp @@ -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);