mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 01:04:06 +01:00
Output the right keys for application and number keypad modes (they were the
wrong way round).
This commit is contained in:
parent
87821fce0e
commit
094bca5ac3
64
input-keys.c
64
input-keys.c
@ -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", 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, "\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, "/", 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. */
|
||||
|
Loading…
Reference in New Issue
Block a user