mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-22 18:47:14 +00:00
Treat the meta bit in the xterm extended modifier key set as the same as
escape (tmux's meta). From Emanuele Giaquinta.
This commit is contained in:
parent
1580afdfdf
commit
f6cd0342f6
1 changed files with 4 additions and 0 deletions
|
|
@ -128,6 +128,8 @@ xterm_keys_modifiers(const char *template, const char *buf, size_t len)
|
|||
modifiers |= KEYC_ESCAPE;
|
||||
if (param & 4)
|
||||
modifiers |= KEYC_CTRL;
|
||||
if (param & 8)
|
||||
modifiers |= KEYC_ESCAPE;
|
||||
return (modifiers);
|
||||
}
|
||||
|
||||
|
|
@ -172,6 +174,8 @@ xterm_keys_lookup(int key)
|
|||
modifiers += 2;
|
||||
if (key & KEYC_CTRL)
|
||||
modifiers += 4;
|
||||
if (key & KEYC_ESCAPE)
|
||||
modifiers += 8;
|
||||
|
||||
/*
|
||||
* If the key has no modifiers, return NULL and let it fall through to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue