From 4a98efb0bc5dad80ec274293581ac55119a10669 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Feb 2018 21:13:25 -0500 Subject: Updated LuaDoc. --- core/events.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') 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 -- cgit v1.2.3