Only map S-Tag in mode 2, not mode 1. GitHub issue 4304.

This commit is contained in:
nicm 2024-12-20 07:10:51 +00:00
parent e149d29803
commit eece41547e

View File

@ -596,7 +596,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
/* Is this backtab? */ /* Is this backtab? */
if ((key & KEYC_MASK_KEY) == KEYC_BTAB) { if ((key & KEYC_MASK_KEY) == KEYC_BTAB) {
if ((s->mode & EXTENDED_KEY_MODES) != 0) { if (s->mode & MODE_KEYS_EXTENDED_2) {
/* When in xterm extended mode, remap into S-Tab. */ /* When in xterm extended mode, remap into S-Tab. */
key = '\011' | (key & ~KEYC_MASK_KEY) | KEYC_SHIFT; key = '\011' | (key & ~KEYC_MASK_KEY) | KEYC_SHIFT;
} else { } else {