summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/tofi.1.md2
-rw-r--r--doc/tofi.1.scd2
-rw-r--r--src/main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/tofi.1.md b/doc/tofi.1.md
index f7c1297..ce3289f 100644
--- a/doc/tofi.1.md
+++ b/doc/tofi.1.md
@@ -54,7 +54,7 @@ the form **--key=value**.
> Move the selection back one entry.
-\<Down\> \| \<Right\>
+\<Down\> \| \<Right\> \| \<Tab\>
> Move the selection back forward entry.
diff --git a/doc/tofi.1.scd b/doc/tofi.1.scd
index 882ba57..87740c1 100644
--- a/doc/tofi.1.scd
+++ b/doc/tofi.1.scd
@@ -48,7 +48,7 @@ All config file options described in *tofi*(5) are also accepted, in the form
<Up> | <Left>
Move the selection back one entry.
-<Down> | <Right>
+<Down> | <Right> | <Tab>
Move the selection back forward entry.
<Enter>
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;