diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/events.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/events.lua b/core/events.lua index 435b3001..f758a3a0 100644 --- a/core/events.lua +++ b/core/events.lua @@ -173,6 +173,10 @@ local M = {} -- [`ui.menu()`](). -- @field MOUSE (string) -- Emitted by the terminal version for an unhandled mouse event. +-- A handler should return `true` if it handled the event. Otherwise Textadept +-- will try again. (This side effect for a `false` or `nil` return is useful +-- for sending the original mouse event to a different view that a handler +-- has switched to.) -- Arguments: -- -- * _`event`_: The mouse event: `buffer.MOUSE_PRESS`, `buffer.MOUSE_DRAG`, or |