aboutsummaryrefslogtreecommitdiff
path: root/core/keys.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/keys.lua')
-rw-r--r--core/keys.lua5
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 = ''