summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-25 12:24:32 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-25 12:24:32 +0000
commit674e626b074b00e33480e10b0663f7a62a5bcfaa (patch)
tree8a411627a4cdd771f9f18aa95fbfa6ff31f01391 /usr.bin/tmux/input-keys.c
parent1f4d78146b59c1500eb9d4c1bf729fa8aded5476 (diff)
Output the right keys for application and number keypad modes (they were the
wrong way round).
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r--usr.bin/tmux/input-keys.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c
index 5a047fbb5db..9ae17897157 100644
--- a/usr.bin/tmux/input-keys.c
+++ b/usr.bin/tmux/input-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input-keys.c,v 1.16 2009/11/10 18:48:03 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.17 2009/11/25 12:24:31 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -98,39 +98,39 @@ struct input_key_ent input_keys[] = {
{ KEYC_LEFT, "\033[D", 0 },
/* Keypad keys. Keypad versions must come first. */
- { KEYC_KP_SLASH, "/", INPUTKEY_KEYPAD },
- { KEYC_KP_STAR, "*", INPUTKEY_KEYPAD },
- { KEYC_KP_MINUS, "-", INPUTKEY_KEYPAD },
- { KEYC_KP_SEVEN, "7", INPUTKEY_KEYPAD },
- { KEYC_KP_EIGHT, "8", INPUTKEY_KEYPAD },
- { KEYC_KP_NINE, "9", INPUTKEY_KEYPAD },
- { KEYC_KP_PLUS, "+", INPUTKEY_KEYPAD },
- { KEYC_KP_FOUR, "4", INPUTKEY_KEYPAD },
- { KEYC_KP_FIVE, "5", INPUTKEY_KEYPAD },
- { KEYC_KP_SIX, "6", INPUTKEY_KEYPAD },
- { KEYC_KP_ONE, "1", INPUTKEY_KEYPAD },
- { KEYC_KP_TWO, "2", INPUTKEY_KEYPAD },
- { KEYC_KP_THREE, "3", INPUTKEY_KEYPAD },
- { KEYC_KP_ENTER, "\n", INPUTKEY_KEYPAD },
- { KEYC_KP_ZERO, "0", INPUTKEY_KEYPAD },
- { KEYC_KP_PERIOD, ".", INPUTKEY_KEYPAD },
-
- { KEYC_KP_SLASH, "\033Oo", 0 },
- { KEYC_KP_STAR, "\033Oj", 0 },
- { KEYC_KP_MINUS, "\033Om", 0 },
- { KEYC_KP_SEVEN, "\033Ow", 0 },
- { KEYC_KP_EIGHT, "\033Ox", 0 },
- { KEYC_KP_NINE, "\033Oy", 0 },
- { KEYC_KP_PLUS, "\033Ok", 0 },
- { KEYC_KP_FOUR, "\033Ot", 0 },
- { KEYC_KP_FIVE, "\033Ou", 0 },
- { KEYC_KP_SIX, "\033Ov", 0 },
- { KEYC_KP_ONE, "\033Oq", 0 },
- { KEYC_KP_TWO, "\033Or", 0 },
- { KEYC_KP_THREE, "\033Os", 0 },
- { KEYC_KP_ENTER, "\033OM", 0 },
- { KEYC_KP_ZERO, "\033Op", 0 },
- { KEYC_KP_PERIOD, "\033On", 0 },
+ { KEYC_KP_SLASH, "\033Oo", INPUTKEY_KEYPAD },
+ { KEYC_KP_STAR, "\033Oj", INPUTKEY_KEYPAD },
+ { KEYC_KP_MINUS, "\033Om", INPUTKEY_KEYPAD },
+ { KEYC_KP_SEVEN, "\033Ow", INPUTKEY_KEYPAD },
+ { KEYC_KP_EIGHT, "\033Ox", INPUTKEY_KEYPAD },
+ { KEYC_KP_NINE, "\033Oy", INPUTKEY_KEYPAD },
+ { KEYC_KP_PLUS, "\033Ok", INPUTKEY_KEYPAD },
+ { KEYC_KP_FOUR, "\033Ot", INPUTKEY_KEYPAD },
+ { KEYC_KP_FIVE, "\033Ou", INPUTKEY_KEYPAD },
+ { KEYC_KP_SIX, "\033Ov", INPUTKEY_KEYPAD },
+ { KEYC_KP_ONE, "\033Oq", INPUTKEY_KEYPAD },
+ { KEYC_KP_TWO, "\033Or", INPUTKEY_KEYPAD },
+ { KEYC_KP_THREE, "\033Os", INPUTKEY_KEYPAD },
+ { KEYC_KP_ENTER, "\033OM", INPUTKEY_KEYPAD },
+ { KEYC_KP_ZERO, "\033Op", INPUTKEY_KEYPAD },
+ { KEYC_KP_PERIOD, "\033On", INPUTKEY_KEYPAD },
+
+ { KEYC_KP_SLASH, "/", 0 },
+ { KEYC_KP_STAR, "*", 0 },
+ { KEYC_KP_MINUS, "-", 0 },
+ { KEYC_KP_SEVEN, "7", 0 },
+ { KEYC_KP_EIGHT, "8", 0 },
+ { KEYC_KP_NINE, "9", 0 },
+ { KEYC_KP_PLUS, "+", 0 },
+ { KEYC_KP_FOUR, "4", 0 },
+ { KEYC_KP_FIVE, "5", 0 },
+ { KEYC_KP_SIX, "6", 0 },
+ { KEYC_KP_ONE, "1", 0 },
+ { KEYC_KP_TWO, "2", 0 },
+ { KEYC_KP_THREE, "3", 0 },
+ { KEYC_KP_ENTER, "\n", 0 },
+ { KEYC_KP_ZERO, "0", 0 },
+ { KEYC_KP_PERIOD, ".", 0 },
};
/* Translate a key code into an output key sequence. */