Don't convert codes for special keys (Tab, Enter, Escape).

pull/3160/head
nicm 2022-03-01 15:20:22 +00:00 committed by Nicholas Marriott
parent 141a823ea4
commit bc0bd8213d
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
}
outkey = (key & KEYC_MASK_KEY);
modifiers = (key & KEYC_MASK_MODIFIERS);
if (outkey < ' ') {
if (outkey < 32 && outkey != 9 && outkey != 13 && outkey != 27) {
outkey = 64 + outkey;
modifiers |= KEYC_CTRL;
}