aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/filter_through.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-07-13 20:51:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-07-13 20:51:17 -0400
commit8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29 (patch)
treeffe7a2317ddb80c558f28039a3120c8a3876afaa /modules/textadept/filter_through.lua
parent57101e2742f9385602c367fc054363c1e52e33a2 (diff)
downloadtextadept-8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29.tar.gz
textadept-8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29.zip
Refactored key commands and added menu accelerators.
Key commands are now in keys.conf and keys.osx.conf which are loaded by the _m.textadept.menu module.
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)