diff options
author | 2020-03-14 12:27:34 -0400 | |
---|---|---|
committer | 2020-03-14 12:27:34 -0400 | |
commit | 51a9603065419f64e1fd191bdf4d8cd95c003064 (patch) | |
tree | 4697bcce2094e29eead5fbe3280aa0365f062a0a /core/keys.lua | |
parent | e51c41469c3717804ae45848194bd8da641c68c5 (diff) | |
download | textadept-51a9603065419f64e1fd191bdf4d8cd95c003064.tar.gz textadept-51a9603065419f64e1fd191bdf4d8cd95c003064.zip |
More code cleanup, refactoring, and reformatting.
Diffstat (limited to 'core/keys.lua')
-rw-r--r-- | core/keys.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/keys.lua b/core/keys.lua index f5002ae5..2d5a1033 100644 --- a/core/keys.lua +++ b/core/keys.lua @@ -209,9 +209,8 @@ local function keypress(code, shift, control, alt, meta, caps_lock) if shift and code >= 32 and code < 256 then shift = false end -- For composed keys on OSX, ignore alt. if OSX and alt and code < 256 then alt = false end - local key_seq = string.format( - '%s%s%s%s%s', control and CTRL or '', alt and ALT or '', - meta and OSX and META or '', shift and SHIFT or '', key) + local key_seq = (control and CTRL or '') .. (alt and ALT or '') .. + (meta and OSX and META or '') .. (shift and SHIFT or '') .. key --print(key_seq) ui.statusbar_text = '' |