diff options
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 77a5cef7..f7131782 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -127,7 +127,7 @@ function keypress(code, shift, control, alt) else return true end end end -textadept.handlers.add_function_to_handler('keypress', keypress, 1) +textadept.handlers.add_handler_function('keypress', keypress, 1) -- Note the following functions are called inside pcall so error handling or -- checking if keys exist etc. is not necessary. |