From 254e2361af91e312b463b79ab9e2330a9125abf1 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 1 Mar 2022 15:20:22 +0000 Subject: [PATCH] Don't convert codes for special keys (Tab, Enter, Escape). --- usr.bin/tmux/input-keys.c | 4 ++-- 1 file 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 @@ -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; } -- 2.20.1