summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/key-string.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-08-22 20:06:14 +0000
committernicm <nicm@openbsd.org>2018-08-22 20:06:14 +0000
commitbba16f07e6cb778ee551aac985dcc3b74eeb23b2 (patch)
tree1a836a7356aabf28f349efcce5985f2c297cf1bc /usr.bin/tmux/key-string.c
parentfrag6_slowtimo: push NET_LOCK into frag6_freef around icmp6_error. (diff)
downloadwireguard-openbsd-bba16f07e6cb778ee551aac985dcc3b74eeb23b2.tar.xz
wireguard-openbsd-bba16f07e6cb778ee551aac985dcc3b74eeb23b2.zip
Add StatusLeft and StatusRight mouse key modifiers for the left and
right parts of the status line.
Diffstat (limited to 'usr.bin/tmux/key-string.c')
-rw-r--r--usr.bin/tmux/key-string.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c
index 21d32e6b5ed..bf10589afd2 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.48 2018/07/16 08:48:22 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.49 2018/08/22 20:06:14 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -271,6 +271,10 @@ key_string_lookup_key(key_code key)
return ("MouseMovePane");
if (key == KEYC_MOUSEMOVE_STATUS)
return ("MouseMoveStatus");
+ if (key == KEYC_MOUSEMOVE_STATUS_LEFT)
+ return ("MouseMoveStatusLeft");
+ if (key == KEYC_MOUSEMOVE_STATUS_RIGHT)
+ return ("MouseMoveStatusRight");
if (key == KEYC_MOUSEMOVE_BORDER)
return ("MouseMoveBorder");
if (key >= KEYC_USER && key < KEYC_USER + KEYC_NUSER) {