Output the right keys for application and number keypad modes (they were the

wrong way round).
This commit is contained in:
Nicholas Marriott 2009-11-25 12:24:31 +00:00
parent 87821fce0e
commit 094bca5ac3
2 changed files with 33 additions and 33 deletions

View File

@ -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. */

2
tmux.h
View File

@ -527,7 +527,7 @@ struct mode_key_table {
#define MODE_CURSOR 0x1
#define MODE_INSERT 0x2
#define MODE_KCURSOR 0x4
#define MODE_KKEYPAD 0x8
#define MODE_KKEYPAD 0x8 /* set = application, clear = number */
#define MODE_MOUSE 0x10
/*