[hackers] [st][PATCH] config: add Ctrl-Tab, Shift-Ctrl-Tab escapes

From: Igor Bukanov <igor_AT_mir2.org>
Date: Sat, 16 Feb 2019 01:05:41 +0100

Ctrl-Tab, Shift-Ctrl-Tab are common combinations to switch between tabs
or panes in applications. This adds their mapping into escape sequences
following definitions from Mintty [1].

[1] - https://github.com/mintty/mintty/wiki/Keycodes#special-keys
---
 config.def.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/config.def.h b/config.def.h
index 0e01717..410dd92 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -322,6 +322,8 @@ static Key key[] = {
 	{ XK_Right,         XK_ANY_MOD,     "\033[C",        0,   -1},
 	{ XK_Right,         XK_ANY_MOD,     "\033OC",        0,   +1},
 	{ XK_ISO_Left_Tab,  ShiftMask,      "\033[Z",        0,    0},
+	{ XK_Tab,           ControlMask,    "\033[1;5I",     0,    0},
+	{ XK_ISO_Left_Tab, ShiftMask|ControlMask,"\033[1;6I",0,    0},
 	{ XK_Return,        Mod1Mask,       "\033\r",        0,    0},
 	{ XK_Return,        XK_ANY_MOD,     "\r",            0,    0},
 	{ XK_Insert,        ShiftMask,      "\033[4l",      -1,    0},
-- 
2.20.1
Received on Sat Feb 16 2019 - 01:05:41 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 16 2019 - 01:12:23 CET