micro/internal/action
Dmitry Maluka 2d95064ff6 Make a pane active whenever any mouse button is pressed on it
Since now bufpane handles mouse move and release events generically and
separately from mouse press events, that creates a mess when we dispatch
a mouse press event to an inactive pane without making it active.

For example:
1. Click the right button on an inactive pane. It remains inactive.
2. Then click the left button on it. It becomes active, and an
unexpected text selection appears.
The reason is that the release event for the first click was dispatched
to a wrong pane - the (then) active one, so the (then) inactive pane
didn't get the release event and treats the second click not as a mouse
press but as a mouse move.

The simplest way to fix it is to avoid this scenario entirely, i.e.
always activate the pane when clicking any mouse button on it, not just
the left button.

For mouse wheel motion events we keep the existing behavior: the pane
gets the event but doesn't become active. Mouse wheel motion events are
not affected by the described issue, as they have no paired "release"
events.
2023-01-29 18:27:22 +01:00
..
actions.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
actions_other.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
actions_posix.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
bindings.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
bufpane.go Reset mouse release state after restarting the screen 2023-01-29 18:26:55 +01:00
command.go Improve buffer view relocation after jumping to a far-away location (#2628) 2022-12-02 19:38:09 -08:00
defaults.go Update keybinding docs 2020-09-06 17:38:23 -04:00
defaults_darwin.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
defaults_other.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
events.go Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
globals.go Improve comments 2021-08-21 17:58:30 -04:00
infocomplete.go Add support for copy-paste via OSC 52 2020-07-04 20:00:39 -04:00
infopane.go Make yes/no prompts case-insensitive (#2182) 2021-08-13 23:56:26 -04:00
keytree.go More style improvements 2021-08-21 18:04:08 -04:00
pane.go More style improvements 2021-08-21 18:04:08 -04:00
rawpane.go Update to tcell v2 2020-09-05 14:52:35 -04:00
tab.go Make a pane active whenever any mouse button is pressed on it 2023-01-29 18:27:22 +01:00
terminal_supported.go Check error in terminal emulator 2020-07-27 17:43:55 -04:00
terminal_unsupported.go Use actual lua functions for callbacks instead of strings 2020-02-08 15:49:41 -05:00
termpane.go Fix internal string binding representation 2020-11-05 15:52:25 -05:00