summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authornicm <nicm>2020-03-31 11:38:35 +0000
committernicm <nicm>2020-03-31 11:38:35 +0000
commit01b3bb8e2c695a7a32a332758e5a8f4a650fc98c (patch)
tree5335bb8548506f5c8fabd3e01959c766a5a6704b /key-string.c
parent3bbd66c0137fe95c348ce333ea7eec9507db7659 (diff)
Add a "second click" key type which is fired for the second click of a
double click, even if the timer hasn't expired to confirm it isn't actually a triple click. Provides a way for people who don't care about triple clicks or can make their commands have no side effects to avoid the double click timer delay.
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/key-string.c b/key-string.c
index 38e5b8a7..76ee4fbe 100644
--- a/key-string.c
+++ b/key-string.c
@@ -100,6 +100,9 @@ static const struct {
KEYC_MOUSE_STRING(MOUSEDRAGEND3, MouseDragEnd3),
KEYC_MOUSE_STRING(WHEELUP, WheelUp),
KEYC_MOUSE_STRING(WHEELDOWN, WheelDown),
+ KEYC_MOUSE_STRING(SECONDCLICK1, SecondClick1),
+ KEYC_MOUSE_STRING(SECONDCLICK2, SecondClick2),
+ KEYC_MOUSE_STRING(SECONDCLICK3, SecondClick3),
KEYC_MOUSE_STRING(DOUBLECLICK1, DoubleClick1),
KEYC_MOUSE_STRING(DOUBLECLICK2, DoubleClick2),
KEYC_MOUSE_STRING(DOUBLECLICK3, DoubleClick3),