From c426e485e527a03aa3b4bdbb3203f621e006cbd5 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 10 Oct 2016 21:29:23 +0000 Subject: Loads more static, except for cmd-*.c and window-*.c. --- key-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'key-string.c') diff --git a/key-string.c b/key-string.c index ef5cf17c..00ebb386 100644 --- a/key-string.c +++ b/key-string.c @@ -25,7 +25,7 @@ static key_code key_string_search_table(const char *); static key_code key_string_get_modifiers(const char **); -const struct { +static const struct { const char *string; key_code key; } key_string_table[] = { -- cgit From 85d7afaefc1e2cf8008575a776ec70f51d24e1a6 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 11 Oct 2016 09:30:36 +0000 Subject: 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. --- key-string.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'key-string.c') 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. */ -- cgit