aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/filter_through.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/filter_through.lua')
-rw-r--r--modules/textadept/filter_through.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/textadept/filter_through.lua b/modules/textadept/filter_through.lua
index c97562fe..5a981270 100644
--- a/modules/textadept/filter_through.lua
+++ b/modules/textadept/filter_through.lua
@@ -1,8 +1,5 @@
-- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
-local L = locale.localize
-local events = events
-
local M = {}
--[[ This comment is for LuaDoc.
@@ -31,6 +28,8 @@ function M.filter_through()
gui.command_entry.focus()
end
+local events = events
+
events.connect(events.COMMAND_ENTRY_KEYPRESS, function(code)
if filter_through_active and keys.KEYSYMS[code] == 'esc' then
filter_through_active = false