summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-11 09:30:36 +0000
committernicm <nicm>2016-10-11 09:30:36 +0000
commit85d7afaefc1e2cf8008575a776ec70f51d24e1a6 (patch)
treea21793f0c47a4683a2cf40ea07387e9e402b052d /key-string.c
parent76d6d3641f271be1756e41494960d96714e7ee58 (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 '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 00ebb386..d513ec6f 100644
--- a/key-string.c
+++ b/key-string.c
@@ -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. */