Improve support for mouse events handling by dmaluka · Pull Request #2605 · micro-editor/micro (original) (raw)
If a mouse event is bound to a Lua function, pass *tcell.EventMouse to this Lua function, so that it can find out the position where a button was clicked etc, just like the built-in MousePress and MouseMultiCursor actions.
Make mouse actions more a first-class citizen: allow chaining them and running onAction and preAction callbacks for them, just like key actions.