aboutsummaryrefslogtreecommitdiff
path: root/core/ext/command_entry.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-06-11 00:24:35 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-06-11 00:24:35 -0400
commit7a4800f05f26067a1cef77e5431256aab4c3d675 (patch)
treec20a86c11384fd8adb88af3acdd7d7757ebd0555 /core/ext/command_entry.lua
parentc83387e378f72b303d692d951da841b581b3d453 (diff)
downloadtextadept-7a4800f05f26067a1cef77e5431256aab4c3d675.tar.gz
textadept-7a4800f05f26067a1cef77e5431256aab4c3d675.zip
Renamed textadept.events to events, renamed 'handle' and 'add_handler'.
Diffstat (limited to 'core/ext/command_entry.lua')
-rw-r--r--core/ext/command_entry.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ext/command_entry.lua b/core/ext/command_entry.lua
index 34dfbe13..c29a2180 100644
--- a/core/ext/command_entry.lua
+++ b/core/ext/command_entry.lua
@@ -3,7 +3,7 @@
local textadept = _G.textadept
local locale = _G.locale
-textadept.events.add_handler('command_entry_command',
+events.connect('command_entry_command',
function(command) -- execute a Lua command
local f, err = loadstring(command)
if err then error(err) end
@@ -11,10 +11,10 @@ textadept.events.add_handler('command_entry_command',
f()
end)
-textadept.events.add_handler('command_entry_keypress',
+events.connect('command_entry_keypress',
function(code)
local ce = textadept.command_entry
- local KEYSYMS = textadept.keys.KEYSYMS
+ local KEYSYMS = keys.KEYSYMS
if KEYSYMS[code] == 'esc' then
ce.focus() -- toggle focus to hide
return true