aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-06-28 00:15:04 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-06-28 00:15:04 -0400
commit8e30adbb7886b61a680d0d01bdd50c29a015ee79 (patch)
tree47dbf1d9c96379c931215175c01480097ff448ca /modules/textadept/find.lua
parenta96fa9e5c2f255a938bd15373344a16448b255c7 (diff)
downloadtextadept-8e30adbb7886b61a680d0d01bdd50c29a015ee79.tar.gz
textadept-8e30adbb7886b61a680d0d01bdd50c29a015ee79.zip
Changed keybinding modifier keys.
They had always been a bit counter-intuitive.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r--modules/textadept/find.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index e04bf786..51abda3f 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -220,8 +220,10 @@ M.find_incremental_keys = setmetatable({
}, {__index = function(_, k)
-- Add the character for any key pressed without modifiers to incremental
-- find.
- if #k > 1 and k:find('^[cams]*.+$') then return end
- M.find_incremental(ui.command_entry:get_text() .. k, true)
+ if #k == 1 or not k:find('ctrl%+') and not k:find('alt%+') and
+ not k:find('meta%+') and not k:find('shift%+') then
+ M.find_incremental(ui.command_entry:get_text() .. k, true)
+ end
end})
---