diff options
author | nicm <nicm> | 2016-10-11 09:30:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-11 09:30:36 +0000 |
commit | 85d7afaefc1e2cf8008575a776ec70f51d24e1a6 (patch) | |
tree | a21793f0c47a4683a2cf40ea07387e9e402b052d /key-string.c | |
parent | 76d6d3641f271be1756e41494960d96714e7ee58 (diff) | |
download | rtmux-85d7afaefc1e2cf8008575a776ec70f51d24e1a6.tar.gz rtmux-85d7afaefc1e2cf8008575a776ec70f51d24e1a6.tar.bz2 rtmux-85d7afaefc1e2cf8008575a776ec70f51d24e1a6.zip |
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.c | 6 |
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. */ |