diff options
author | 2019-09-27 23:35:25 -0400 | |
---|---|---|
committer | 2019-09-27 23:35:25 -0400 | |
commit | 0e98bdbec356119b10b02e8d0930f35ff7fd7ae3 (patch) | |
tree | f8f31ee5d9dfe60ef93ff0e8901d912d27047f66 /modules | |
parent | cdc2fc579977b3d7ae32f08c154928cccedf7327 (diff) | |
download | textadept-0e98bdbec356119b10b02e8d0930f35ff7fd7ae3.tar.gz textadept-0e98bdbec356119b10b02e8d0930f35ff7fd7ae3.zip |
Fixed macro toggling with some key combinations.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/macros.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/macros.lua b/modules/textadept/macros.lua index 476a6b44..b10d1994 100644 --- a/modules/textadept/macros.lua +++ b/modules/textadept/macros.lua @@ -33,6 +33,7 @@ local event_recorders = { local key = code < 256 and string.char(code) or keys.KEYSYMS[code] if key then -- Note: this is a simplified version of key handling. + shift = shift and (code >= 256 or code == 9) local key_seq = (control and 'c' or '')..(alt and 'a' or '').. (meta and OSX and 'm' or '')..(shift and 's' or '')..key for i = 1, #ignore do if keys[key_seq] == ignore[i] then return end end |