summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index c276c498..627b22cf 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -95,7 +95,10 @@ struct input_key_ent input_keys[] = {
{ KEYC_PPAGE|KEYC_CTRL, "\033[5^", 0 },
{ KEYC_BTAB, "\033[Z", 0 },
- /* Arrow keys. Cursor versions must come first. */
+ /*
+ * Arrow keys. Cursor versions must come first. The codes are toggled
+ * between CSI and SS3 versions when ctrl is pressed.
+ */
{ KEYC_UP|KEYC_CTRL, "\033[A", INPUTKEY_CURSOR },
{ KEYC_DOWN|KEYC_CTRL, "\033[B", INPUTKEY_CURSOR },
{ KEYC_RIGHT|KEYC_CTRL, "\033[C", INPUTKEY_CURSOR },