summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-01-11 22:36:08 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-01-11 22:36:08 +0000
commit291fee9dfbf05f085b7e77442afa0b36cc86a19f (patch)
tree6926e3daae102ffe258a1113198bc28682ae00a5 /usr.bin/tmux/key-string.c
parent69c3226d7288daf6689c5b1d58c9c38a83a7b742 (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 'usr.bin/tmux/key-string.c')
-rw-r--r--usr.bin/tmux/key-string.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c
index f13eb90e636..9c7d2ec855b 100644
--- a/usr.bin/tmux/key-string.c
+++ b/usr.bin/tmux/key-string.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-string.c,v 1.42 2017/01/05 09:07:16 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.43 2017/01/11 22:36:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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