diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-21 15:07:49 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-21 15:07:49 +0200 |
commit | a6314e152b2d2f306bcbb880356d3890efbfc89e (patch) | |
tree | 574e5a78d63a5149213c0f9d68f4591af1e17e1f /src/ui/bindingswidget.c | |
parent | 6d24d800df86e11c5686d50437932a711af82915 (diff) |
Keyboard navigation mode for home row keys
Now there are keybindings for activating the keyboard navigation modes. The modifier-based mode remains as it was before, focusing on numbers, while the home row mode uses a separate activation key.
One can erase the bindings to disable the corresponding modes.
IssueID #34
Diffstat (limited to 'src/ui/bindingswidget.c')
-rw-r--r-- | src/ui/bindingswidget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c index ff68ea7b..dee844db 100644 --- a/src/ui/bindingswidget.c +++ b/src/ui/bindingswidget.c | |||
@@ -195,6 +195,12 @@ static iBool processEvent_BindingsWidget_(iBindingsWidget *d, const SDL_Event *e | |||
195 | postCommand_App("bindings.changed"); | 195 | postCommand_App("bindings.changed"); |
196 | return iTrue; | 196 | return iTrue; |
197 | } | 197 | } |
198 | else if (ev->type == SDL_KEYUP && isMod_Sym(ev->key.keysym.sym)) { | ||
199 | setKey_BindingItem_(item_ListWidget(d->list, d->activePos), ev->key.keysym.sym, 0); | ||
200 | setActiveItem_BindingsWidget_(d, iInvalidPos); | ||
201 | postCommand_App("bindings.changed"); | ||
202 | return iTrue; | ||
203 | } | ||
198 | } | 204 | } |
199 | return processEvent_Widget(w, ev); | 205 | return processEvent_Widget(w, ev); |
200 | } | 206 | } |