diff --git a/ChangeLog b/ChangeLog index 8fcfc13466e37530b32844cf8528fec9712919b5..669230fcc9e47f6cf80faa1cf1c99c648162ded0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,7 +6,7 @@ CVS code - -W/--wordbounds. Changes to usage(), nano.1, nanorc.5, rnano.1, nano.texi, and nanorc.sample.in. (DLR) - Fix mouse support so that it really ignores everything except - releases of button 1 (i.e, left clicks). Changes to + releases and clicks of button 1. Changes to enable_mouse_support() and get_mouseinput(). (DLR) - browser.c: do_browser() diff --git a/src/winio.c b/src/winio.c index 204127c833561c6f481b476cb1565fdf29036a9b..15d613310034baa2d1e0067edc5f887b8b26f34f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1520,9 +1520,9 @@ bool get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts) if (getmouse(&mevent) == ERR) return FALSE; - /* If it's not a release of the first mouse button (i.e, a left - * click), get out. */ - if (!(mevent.bstate & BUTTON1_RELEASED)) + /* If it's not a release or click of the first mouse button, get + * out. */ + if (!(mevent.bstate & (BUTTON1_RELEASED | BUTTON1_CLICKED))) return FALSE; /* Save the screen coordinates where the mouse event took place. */