diff options
author | Josh Rahm <rahm@google.com> | 2023-01-27 23:26:31 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2023-01-27 23:26:31 +0000 |
commit | 41f869d38df1edb6dc23e0ac233de2336645c350 (patch) | |
tree | add16c9c1becd28abf366fd5a028991e9f6cdfa5 | |
parent | e64dc03ff7b867826c7fc76d6fff210ad3382e33 (diff) | |
download | rtmux-41f869d38df1edb6dc23e0ac233de2336645c350.tar.gz rtmux-41f869d38df1edb6dc23e0ac233de2336645c350.tar.bz2 rtmux-41f869d38df1edb6dc23e0ac233de2336645c350.zip |
Remove and killswitchrahm
-rw-r--r-- | input-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c index 318885b2..31563c52 100644 --- a/input-keys.c +++ b/input-keys.c @@ -506,7 +506,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) } /* No builtin key sequence; construct an extended key sequence. */ - if ((~s->mode & MODE_KEXTENDED) && 0) { + if (~s->mode & MODE_KEXTENDED) { if ((key & KEYC_MASK_MODIFIERS) != KEYC_CTRL) goto missing; justkey = (key & KEYC_MASK_KEY); @@ -541,6 +541,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) } outkey = (key & KEYC_MASK_KEY); modifiers = (key & KEYC_MASK_MODIFIERS); + if (outkey < 32 && outkey != 9 && outkey != 13 && outkey != 27) { outkey = 64 + outkey; modifiers |= KEYC_CTRL; |