aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-06-19 16:12:13 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2008-06-19 16:12:13 -0400
commita7689577a6668f3af7480012402780fb7b0ae5a8 (patch)
treee81c6d8bccc00e87ed0d14c3d421100691dcc9af /core/events.lua
parent97635fa8723928c958effcab10f060572cfb42b1 (diff)
downloadtextadept-a7689577a6668f3af7480012402780fb7b0ae5a8.tar.gz
textadept-a7689577a6668f3af7480012402780fb7b0ae5a8.zip
Added extra note in LuaDoc about quit handler; core/events.lua
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua3
1 files changed, 3 insertions, 0 deletions
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.