From 77625f2c75db0407ecc2dca36c35970682671114 Mon Sep 17 00:00:00 2001 From: Struan Robertson Date: Thu, 18 Jul 2024 11:35:21 +0100 Subject: Control-{f|b} keybinding for forwards and backwards. Emacs like keybindings for when Tofi is displayed horizontally. --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3