diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-10-14 00:37:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-10-14 00:37:51 +0000 |
commit | f6cd0342f69ff47da2c298febeec59919c002eca (patch) | |
tree | 0abb3fb487ae4917633f64e7915c690a939581ce /xterm-keys.c | |
parent | 1580afdfdf72e3dd33a5063bce69fd96f0906d42 (diff) | |
download | rtmux-f6cd0342f69ff47da2c298febeec59919c002eca.tar.gz rtmux-f6cd0342f69ff47da2c298febeec59919c002eca.tar.bz2 rtmux-f6cd0342f69ff47da2c298febeec59919c002eca.zip |
Treat the meta bit in the xterm extended modifier key set as the same as
escape (tmux's meta). From Emanuele Giaquinta.
Diffstat (limited to 'xterm-keys.c')
-rw-r--r-- | xterm-keys.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xterm-keys.c b/xterm-keys.c index 3c9fd3ba..5f8db986 100644 --- a/xterm-keys.c +++ b/xterm-keys.c @@ -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 |