aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/textadept/macros.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-07-12 21:20:21 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-07-12 21:20:21 -0400
commit1d7b8a6e4e20d7140d1fd93ceb06aa04a51d47a0 (patch)
tree5ba63a73e1cc379cb26e1799c32b38aa855b59c6 /modules/textadept/macros.lua
parent5ba977f8656bec5054e7ab7a46c478a4b70f0d5f (diff)
Updated macro record to use new modifier keys.
Diffstat (limited to 'modules/textadept/macros.lua')
-rw-r--r--modules/textadept/macros.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/macros.lua b/modules/textadept/macros.lua
index e83b6a8b..a3636e6f 100644
--- a/modules/textadept/macros.lua
+++ b/modules/textadept/macros.lua
@@ -31,12 +31,12 @@ end
local event_recorders = {
[events.KEYPRESS] = function(code, shift, control, alt, cmd)
-- Not every keypress should be recorded (e.g. toggling macro recording).
- -- Use very basic key handling to try to identify key commands to ignore.
+ -- Use very basic key handling to try to identify key bindings to ignore.
local key = code < 256 and string.char(code) or keys.KEYSYMS[code]
if key then
if shift and code >= 32 and code < 256 then shift = false end
- local key_seq = (control and 'c' or '') .. (alt and 'a' or '') ..
- (cmd and OSX and 'm' or '') .. (shift and 's' or '') .. key
+ local key_seq = (control and 'ctrl+' or '') .. (alt and 'alt+' or '') ..
+ (cmd and OSX and 'cmd+' or '') .. (shift and 'shift+' or '') .. key
for i = 1, #ignore do if keys[key_seq] == ignore[i] then return end end
end
macro[#macro + 1] = {events.KEYPRESS, code, shift, control, alt, cmd}