From a7689577a6668f3af7480012402780fb7b0ae5a8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 19 Jun 2008 16:12:13 -0400 Subject: Added extra note in LuaDoc about quit handler; core/events.lua --- core/events.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/events.lua b/core/events.lua index 7a1ed360..c708af62 100644 --- a/core/events.lua +++ b/core/events.lua @@ -55,6 +55,9 @@ module('textadept.events', package.seeall) -- view_new() -- view_switch() -- quit() +-- Note: when adding a quit handler, it must be inserted at index 1 because +-- the default quit handler returns true, which ignores all subsequent +-- handlers. -- keypress(code, shift, control, alt) -- code: the key code. -- shift: flag indicating whether or not shift is pressed. -- cgit v1.2.3