summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 18:58:13 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 18:58:13 +0100
commit401f1977501894e89f13d09508acc38e1c98f2d0 (patch)
treeaa6cc9e8bcf564d5840280d9e9e66f6384063f4e /input-keys.c
parentca60aabab5ddfccc6c2d35dc3c7aca0e4e9aee85 (diff)
Er, misread this and it is not needed.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/input-keys.c b/input-keys.c
index 07f102b8..a6bd6eca 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -499,66 +499,6 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
if (~s->mode & MODE_KEXTENDED)
goto missing;
outkey = (key & KEYC_MASK_KEY);
- if (outkey >= KEYC_BASE) {
- switch (outkey) {
- case KEYC_IC:
- outkey = 2;
- break;
- case KEYC_DC:
- outkey = 3;
- break;
- case KEYC_PPAGE:
- outkey = 5;
- break;
- case KEYC_NPAGE:
- outkey = 6;
- break;
- case KEYC_HOME:
- outkey = 7;
- break;
- case KEYC_END:
- outkey = 8;
- break;
- case KEYC_F1:
- outkey = 11;
- break;
- case KEYC_F2:
- outkey = 12;
- break;
- case KEYC_F3:
- outkey = 13;
- break;
- case KEYC_F4:
- outkey = 14;
- break;
- case KEYC_F5:
- outkey = 15;
- break;
- case KEYC_F6:
- outkey = 17;
- break;
- case KEYC_F7:
- outkey = 18;
- break;
- case KEYC_F8:
- outkey = 19;
- break;
- case KEYC_F9:
- outkey = 20;
- break;
- case KEYC_F10:
- outkey = 21;
- break;
- case KEYC_F11:
- outkey = 23;
- break;
- case KEYC_F12:
- outkey = 24;
- break;
- default:
- goto missing;
- }
- }
switch (key & KEYC_MASK_MODIFIERS) {
case KEYC_SHIFT:
modifier = '2';