diff options
author | 2008-06-19 16:12:13 -0400 | |
---|---|---|
committer | 2008-06-19 16:12:13 -0400 | |
commit | a7689577a6668f3af7480012402780fb7b0ae5a8 (patch) | |
tree | e81c6d8bccc00e87ed0d14c3d421100691dcc9af | |
parent | 97635fa8723928c958effcab10f060572cfb42b1 (diff) | |
download | textadept-a7689577a6668f3af7480012402780fb7b0ae5a8.tar.gz textadept-a7689577a6668f3af7480012402780fb7b0ae5a8.zip |
Added extra note in LuaDoc about quit handler; core/events.lua
-rw-r--r-- | core/events.lua | 3 |
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. |