diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 12:16:41 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 12:16:41 +0100 |
commit | 340fd691cbd6f575fc1169269dfa675f30ce71d3 (patch) | |
tree | 15d3aa92656e6fe413bd2e74b47c9ebb20edafb1 /mode-tree.c | |
parent | 031d4864a94cd7c042fe96a2d236bccde83655e7 (diff) | |
download | rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.gz rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.bz2 rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.zip |
Separate key flags and modifiers, log key flags, make the "xterm" flag more
explicit and fix M- keys with a leading escape.
Diffstat (limited to 'mode-tree.c')
-rw-r--r-- | mode-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mode-tree.c b/mode-tree.c index 03738d56..993070ec 100644 --- a/mode-tree.c +++ b/mode-tree.c @@ -987,7 +987,7 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key, choice = -1; if (*key >= '0' && *key <= '9') choice = (*key) - '0'; - else if (((*key) & KEYC_MASK_MOD) == KEYC_META) { + else if (((*key) & KEYC_MASK_MODIFIERS) == KEYC_META) { tmp = (*key) & KEYC_MASK_KEY; if (tmp >= 'a' && tmp <= 'z') choice = 10 + (tmp - 'a'); |