aboutsummaryrefslogtreecommitdiff
path: root/key-string.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-07-16 11:02:25 +0100
committerThomas Adam <thomas@xteddy.org>2018-07-16 11:02:25 +0100
commit4f04b2094ca0011277d23369cf03870227c6afc1 (patch)
tree8b260c74c58a0d6482594a687d9486a254fe0060 /key-string.c
parent6de991d855e66e341ca30d9a40a65f3f2c905984 (diff)
parent0d88f8a78bc0d91ab6fa53c9109f7316bfe5ffbb (diff)
downloadrtmux-4f04b2094ca0011277d23369cf03870227c6afc1.tar.gz
rtmux-4f04b2094ca0011277d23369cf03870227c6afc1.tar.bz2
rtmux-4f04b2094ca0011277d23369cf03870227c6afc1.zip
Merge branch 'obsd-master'
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/key-string.c b/key-string.c
index d630d778..45073efd 100644
--- a/key-string.c
+++ b/key-string.c
@@ -166,9 +166,11 @@ key_string_lookup_string(const char *string)
enum utf8_state more;
wchar_t wc;
- /* Is this no key? */
+ /* Is this no key or any key? */
if (strcasecmp(string, "None") == 0)
return (KEYC_NONE);
+ if (strcasecmp(string, "Any") == 0)
+ return (KEYC_ANY);
/* Is this a hexadecimal value? */
if (string[0] == '0' && string[1] == 'x') {
@@ -251,6 +253,8 @@ key_string_lookup_key(key_code key)
/* Handle special keys. */
if (key == KEYC_UNKNOWN)
return ("Unknown");
+ if (key == KEYC_ANY)
+ return ("Any");
if (key == KEYC_FOCUS_IN)
return ("FocusIn");
if (key == KEYC_FOCUS_OUT)