diff options
author | nicm <nicm> | 2022-11-02 07:36:07 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-11-02 07:36:07 +0000 |
commit | 9614f5156079773b338a13e95ec932cc7c95b031 (patch) | |
tree | d6962c3d17ce04e50f2c5caeffff2edefa602b55 /tty-keys.c | |
parent | 2d08235987efa1e2f9c932c4a5c8a0200b4804c1 (diff) |
Instead of always setting the extended flag, set it only when searching.
Allows send-keys to work. From Aaron Jensen.
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -210,7 +210,7 @@ static const struct tty_default_key_raw tty_default_raw_keys[] = { { "\033[201~", KEYC_PASTE_END }, /* Extended keys. */ - { "\033[1;5Z", '\011'|KEYC_CTRL|KEYC_SHIFT|KEYC_EXTENDED }, + { "\033[1;5Z", '\011'|KEYC_CTRL|KEYC_SHIFT }, }; /* Default xterm keys. */ @@ -977,7 +977,7 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len, log_debug("%s: extended key %.*s is %llx (%s)", c->name, (int)*size, buf, nkey, key_string_lookup_key(nkey, 1)); } - *key = nkey|KEYC_EXTENDED; + *key = nkey; return (0); } |