diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-07-09 17:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-07-09 17:02:26 +0100 |
commit | 98ef369b27b631b7893446fbdf7c9d6ce9c1b43a (patch) | |
tree | 279d31f5e5c58725740969330041d5294a8828c4 /key-string.c | |
parent | 177599efb7d6477db8ce2bc6da82b16cb0327954 (diff) | |
parent | fc2016dbb665f01e795a89632a1bb74294bfc4e1 (diff) | |
download | rtmux-98ef369b27b631b7893446fbdf7c9d6ce9c1b43a.tar.gz rtmux-98ef369b27b631b7893446fbdf7c9d6ce9c1b43a.tar.bz2 rtmux-98ef369b27b631b7893446fbdf7c9d6ce9c1b43a.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'key-string.c')
-rw-r--r-- | key-string.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/key-string.c b/key-string.c index 8442727d..a1ef4f51 100644 --- a/key-string.c +++ b/key-string.c @@ -284,6 +284,12 @@ key_string_lookup_key(key_code key) return (out); } + /* Literal keys are themselves. */ + if (key & KEYC_LITERAL) { + snprintf(out, sizeof out, "%c", (int)(key & 0xff)); + return (out); + } + /* * Special case: display C-@ as C-Space. Could do this below in * the (key >= 0 && key <= 32), but this way we let it be found |