diff options
| author | 2016-10-11 09:30:36 +0000 | |
|---|---|---|
| committer | 2016-10-11 09:30:36 +0000 | |
| commit | d87ce0c7edd11111adae9d94fb30cf7cf097862e (patch) | |
| tree | 8b85402b316f56b8d974d15fca435952e5055d5c /usr.bin/tmux/key-string.c | |
| parent | Sync proc.c file vmd(8) and switchd(8). (diff) | |
| download | wireguard-openbsd-d87ce0c7edd11111adae9d94fb30cf7cf097862e.tar.xz wireguard-openbsd-d87ce0c7edd11111adae9d94fb30cf7cf097862e.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 'usr.bin/tmux/key-string.c')
| -rw-r--r-- | usr.bin/tmux/key-string.c | 8 |
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. */ |
