Improve fix for shifted keys so it works for all the keys it should,

Stanislav Kljuhhin in GitHub issue 4146.
This commit is contained in:
nicm
2024-10-03 05:41:59 +00:00
parent 05116cefe6
commit 780a87be9a
2 changed files with 22 additions and 12 deletions

View File

@ -557,10 +557,6 @@ input_key_mode1(struct bufferevent *bev, key_code key)
(onlykey >= '@' && onlykey <= '~')))
return (input_key_vt10x(bev, key));
/* Avoid reporting A as Shift-A, which is not expected in mode 1. */
if ((key & KEYC_MASK_MODIFIERS) == KEYC_SHIFT)
return (input_key_vt10x(bev, key));
/*
* A regular key + Meta. In the absence of a standard to back this, we
* mimic what iTerm 2 does.