diff options
author | Struan Robertson <struanrobertson@pm.me> | 2024-07-18 11:35:21 +0100 |
---|---|---|
committer | Philip Jones <philj56@gmail.com> | 2024-12-30 15:06:13 +0000 |
commit | 77625f2c75db0407ecc2dca36c35970682671114 (patch) | |
tree | 41a465fcadc1f89825b96ef514fef8b733a955b1 /src/input.c | |
parent | ae139171636ddbfffc0977f38da6c64043b792a6 (diff) |
Control-{f|b} keybinding for forwards and backwards.
Emacs like keybindings for when Tofi is displayed horizontally.
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c index 6e0c949..17b2015 100644 --- a/src/input.c +++ b/src/input.c @@ -76,13 +76,13 @@ void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode) || key == KEY_LEFT || (key == KEY_TAB && shift) || (key == KEY_H && alt) - || ((key == KEY_K || key == KEY_P) && (ctrl || alt))) { + || ((key == KEY_K || key == KEY_P || key == KEY_B) && (ctrl || alt))) { select_previous_result(tofi); } else if (key == KEY_DOWN || key == KEY_RIGHT || key == KEY_TAB || (key == KEY_L && alt) - || ((key == KEY_J || key == KEY_N) && (ctrl || alt))) { + || ((key == KEY_J || key == KEY_N || key == KEY_F) && (ctrl || alt))) { select_next_result(tofi); } else if (key == KEY_HOME) { reset_selection(tofi); |