mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Handle C-Tab correctly with extended keys, GitHub issue 2642.
This commit is contained in:
parent
30cf20d615
commit
f29d3c7f74
11
tty-keys.c
11
tty-keys.c
@ -953,11 +953,14 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
|
||||
* Don't allow both KEYC_CTRL and as an implied modifier. Also convert
|
||||
* C-X into C-x and so on.
|
||||
*/
|
||||
if (nkey & KEYC_CTRL){
|
||||
if (nkey & KEYC_CTRL) {
|
||||
onlykey = (nkey & KEYC_MASK_KEY);
|
||||
if (onlykey < 32)
|
||||
onlykey = (nkey & ~KEYC_CTRL);
|
||||
else {
|
||||
if (onlykey < 32) {
|
||||
if (onlykey != 9)
|
||||
onlykey = (nkey & ~KEYC_CTRL);
|
||||
else
|
||||
onlykey = (9|KEYC_CTRL);
|
||||
} else {
|
||||
if (onlykey >= 97 && onlykey <= 122)
|
||||
onlykey -= 96;
|
||||
else if (onlykey >= 64 && onlykey <= 95)
|
||||
|
Loading…
Reference in New Issue
Block a user