aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.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/find.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/find.lua')
-rw-r--r--modules/textadept/find.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 4d80ae39..a0f6e299 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -176,13 +176,12 @@ function find.find_incremental()
end
events.connect(events.COMMAND_ENTRY_KEYPRESS, function(code)
- local K = keys.KEYSYMS
if find.incremental then
- if K[code] == 'esc' then
+ if keys.KEYSYMS[code] == 'esc' then
find.incremental = nil
- elseif code < 256 or K[code] == '\b' then
+ elseif code < 256 or keys.KEYSYMS[code] == '\b' then
local text = gui.command_entry.entry_text
- if K[code] == '\b' then
+ if keys.KEYSYMS[code] == '\b' then
find_incremental(text:sub(1, -2))
else
find_incremental(text..string.char(code))