summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-28 07:33:43 +0100
committerPhil Jones <philj56@gmail.com>2022-06-28 07:35:12 +0100
commit84016458470a8e9f076f3e7f1714c35e80afd7d6 (patch)
tree9c4113e879355db4fd3ccfd4f0e2a267af64198f /src/main.c
parent014b7571f3d09c51fa10400189e92a9160f68ec2 (diff)
Select next result on Tab.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 6284cda..12e89a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -210,7 +210,7 @@ static void wl_keyboard_key(
tofi->window.entry.selection += nsel;
tofi->window.entry.selection--;
tofi->window.entry.selection %= nsel;
- } else if (sym == XKB_KEY_Down || sym == XKB_KEY_Right) {
+ } else if (sym == XKB_KEY_Down || sym == XKB_KEY_Right || sym == XKB_KEY_Tab) {
uint32_t nsel = MAX(MIN(tofi->window.entry.num_results, tofi->window.entry.results.count), 1);
tofi->window.entry.selection++;
tofi->window.entry.selection %= nsel;