summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-11 22:36:07 +0000
committernicm <nicm>2017-01-11 22:36:07 +0000
commit3bb14001b9a9a5665c7dcac542dc49841e1b3c58 (patch)
treeb84fd2e64b8d75fa4890221e9fb1b028913df6d4 /key-string.c
parentbf6a5c056d4be87d68d0e3e409dbf8f116bc9317 (diff)
Add some missing special keys to key_string_lookup_key, fix a mouse
check in server_client_handle_key, and tweak a comment.
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/key-string.c b/key-string.c
index b2fe845f..85841dd2 100644
--- a/key-string.c
+++ b/key-string.c
@@ -247,8 +247,14 @@ key_string_lookup_key(key_code key)
/* Handle special keys. */
if (key == KEYC_UNKNOWN)
return ("Unknown");
+ if (key == KEYC_FOCUS_IN)
+ return ("FocusIn");
+ if (key == KEYC_FOCUS_OUT)
+ return ("FocusOut");
if (key == KEYC_MOUSE)
return ("Mouse");
+ if (key == KEYC_DRAGGING)
+ return ("Dragging");
/*
* Special case: display C-@ as C-Space. Could do this below in