summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-10-11 09:30:37 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-10-11 09:30:37 +0000
commitb3d5caf0924495bb61ff8f3aed127032d86df822 (patch)
treeb4a9e42c399fee0546638c6d7dfff34e2268b08d /usr.bin/tmux/key-string.c
parent52e49adc428783ae4b92d78cf459d189894e9ccc (diff)
Support double and triple clicks (they are cumulative, so double is
fired then triple), and use for select-word and select-line in copy mode. Inspired by a different solution from Omar Sandoval.
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 1040943d5e8..bb73590ab83 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.39 2016/10/10 21:29:23 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.40 2016/10/11 09:30:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -98,6 +98,12 @@ static const struct {
KEYC_MOUSE_STRING(MOUSEDRAGEND3, MouseDragEnd3),
KEYC_MOUSE_STRING(WHEELUP, WheelUp),
KEYC_MOUSE_STRING(WHEELDOWN, WheelDown),
+ KEYC_MOUSE_STRING(DOUBLECLICK1, DoubleClick1),
+ KEYC_MOUSE_STRING(DOUBLECLICK2, DoubleClick2),
+ KEYC_MOUSE_STRING(DOUBLECLICK3, DoubleClick3),
+ KEYC_MOUSE_STRING(TRIPLECLICK1, TripleClick1),
+ KEYC_MOUSE_STRING(TRIPLECLICK2, TripleClick2),
+ KEYC_MOUSE_STRING(TRIPLECLICK3, TripleClick3),
};
/* Find key string in table. */