aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-27 17:34:16 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-27 17:35:17 +0200
commit8529f24a464013f31253d8c3aa0886cbd47cf86b (patch)
tree753024e0d257a3c5d202c351e0064f0cb12a41a7
parent190e813d4927c9321da69d96eb02d7e5dc1d97e7 (diff)
downloadnncmpp-8529f24a464013f31253d8c3aa0886cbd47cf86b.tar.gz
nncmpp-8529f24a464013f31253d8c3aa0886cbd47cf86b.tar.xz
nncmpp-8529f24a464013f31253d8c3aa0886cbd47cf86b.zip
Bind Tab and S-Tab to tab switching
-rw-r--r--NEWS2
-rw-r--r--nncmpp.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b198b5d..c711082 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ Unreleased
* Implemented mouse drags on the elapsed time gauge and the scrollbar
+ * Added Tab and S-Tab bindings to iterate tabs
+
* Added a "z" binding to center the view on the selected item
* Added a "?" binding to describe items in various tabs
diff --git a/nncmpp.c b/nncmpp.c
index ec8a735..abd17e5 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -2948,6 +2948,8 @@ g_normal_defaults[] =
{ "C-l", ACTION_REDRAW },
{ "M-Tab", ACTION_TAB_LAST },
{ "F1", ACTION_TAB_HELP },
+ { "S-Tab", ACTION_TAB_PREVIOUS },
+ { "Tab", ACTION_TAB_NEXT },
{ "C-Left", ACTION_TAB_PREVIOUS },
{ "C-Right", ACTION_TAB_NEXT },
{ "C-PageUp", ACTION_TAB_PREVIOUS },
@@ -5951,6 +5953,7 @@ x11_convert_keysym (KeySym keysym)
{
case XK_BackSpace: return TERMO_SYM_BACKSPACE;
case XK_Tab: return TERMO_SYM_TAB;
+ case XK_ISO_Left_Tab: return TERMO_SYM_TAB;
case XK_Return: return TERMO_SYM_ENTER;
case XK_Escape: return TERMO_SYM_ESCAPE;