aboutsummaryrefslogtreecommitdiff
path: root/src/keys.cc
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2025-08-04 21:46:18 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-08-04 22:23:21 +0200
commit8429930aecec8f5714c9e956171002fbb9c4eba3 (patch)
treec5d0992fc22fb90b2dbebc3875a803408ecc1188 /src/keys.cc
parent607e4acefeec5776dfff63090a79baef15c6c336 (diff)
Focus the N-th tab with Alt-<number>
Allows jumping directly to a given tab. It encourages a low number of tabs opened, otherwise it will exceed the 1 to 10 range.
Diffstat (limited to 'src/keys.cc')
-rw-r--r--src/keys.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 2a97a160..d94e5918 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -144,6 +144,16 @@ static const KeyBinding_t default_keys[] = {
{ "zoom-in" , KEYS_ZOOM_IN , FL_CTRL , '=' /* US + */ },
{ "zoom-out" , KEYS_ZOOM_OUT , FL_CTRL , '-' },
{ "zoom-reset" , KEYS_ZOOM_RESET , FL_CTRL , '0' },
+ { "focus-tab1" , KEYS_FOCUS_TAB1 , FL_ALT , '1' },
+ { "focus-tab2" , KEYS_FOCUS_TAB2 , FL_ALT , '2' },
+ { "focus-tab3" , KEYS_FOCUS_TAB3 , FL_ALT , '3' },
+ { "focus-tab4" , KEYS_FOCUS_TAB4 , FL_ALT , '4' },
+ { "focus-tab5" , KEYS_FOCUS_TAB5 , FL_ALT , '5' },
+ { "focus-tab6" , KEYS_FOCUS_TAB6 , FL_ALT , '6' },
+ { "focus-tab7" , KEYS_FOCUS_TAB7 , FL_ALT , '7' },
+ { "focus-tab8" , KEYS_FOCUS_TAB8 , FL_ALT , '8' },
+ { "focus-tab9" , KEYS_FOCUS_TAB9 , FL_ALT , '9' },
+ { "focus-tab10" , KEYS_FOCUS_TAB10 , FL_ALT , '0' },
};
static Dlist *bindings;