diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-03-01 15:20:23 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-03-01 15:20:23 +0000 |
commit | 77670d0360566a79379548fa460cfc9e259b0eff (patch) | |
tree | e561e331812647f93f6b85b6ee755ca71d58438d /usr.bin/tmux/input-keys.c | |
parent | 2299ab86f880ae664935ac9ec0ee67c688ac2a9f (diff) |
Don't convert codes for special keys (Tab, Enter, Escape).
Diffstat (limited to 'usr.bin/tmux/input-keys.c')
-rw-r--r-- | usr.bin/tmux/input-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index 4898043cb6a..0d099decb4b 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.88 2022/02/28 09:24:22 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.89 2022/03/01 15:20:22 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -520,7 +520,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; } |