diff options
author | 2007-08-15 16:36:19 -0400 | |
---|---|---|
committer | 2007-08-15 16:36:19 -0400 | |
commit | cc8bc0b210d5716d970717e86216a6b059eecf05 (patch) | |
tree | ce5674f4695da038208517f13920246bd9e9372d /modules/textadept/keys.lua | |
parent | f332c1ccccc666e908eea56592b139ef685a99fd (diff) | |
download | textadept-cc8bc0b210d5716d970717e86216a6b059eecf05.tar.gz textadept-cc8bc0b210d5716d970717e86216a6b059eecf05.zip |
Renamed handlers module to events, updated everything to reflect changes.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 93d089a9..996cdabf 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -159,7 +159,7 @@ local function keypress(code, shift, control, alt) local ret, retval = pcall( func, unpack(args) ) if ret then if type(retval) == 'boolean' then return retval end - else textadept.handlers.error(retval) end -- error + else textadept.events.error(retval) end -- error end return true else @@ -175,7 +175,7 @@ local function keypress(code, shift, control, alt) else return true end end end -textadept.handlers.add_handler_function('keypress', keypress, 1) +textadept.events.add_handler('keypress', keypress, 1) --- -- [Local function] Tries to get a key command based on the lexer and current |