From 13efe34eae11be0d3a16522bcf63b21e754c8297 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 11 Sep 2019 18:43:11 +0300 Subject: [PATCH] Interpret shift+tab as NAV_PREVIOUS --- source/systemkeyboardinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.2