From 7a4800f05f26067a1cef77e5431256aab4c3d675 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 11 Jun 2010 00:24:35 -0400 Subject: Renamed textadept.events to events, renamed 'handle' and 'add_handler'. --- core/ext/command_entry.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/ext/command_entry.lua') 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 -- cgit v1.2.3