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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/filter_through.lua b/modules/textadept/filter_through.lua
index a0cc0072..35123194 100644
--- a/modules/textadept/filter_through.lua
+++ b/modules/textadept/filter_through.lua
@@ -28,7 +28,7 @@ function filter_through()
end
events.connect(events.COMMAND_ENTRY_KEYPRESS, function(code)
- if filter_through_active and code == 0xff1b then -- escape
+ if filter_through_active and keys.KEYSYMS[code] == 'esc' then
filter_through_active = false
end
end, 1) -- place before command_entry.lua's handler (if necessary)