From 51a9603065419f64e1fd191bdf4d8cd95c003064 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 14 Mar 2020 12:27:34 -0400 Subject: More code cleanup, refactoring, and reformatting. --- core/keys.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core') 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 = '' -- cgit v1.2.3