From 028f5b49314c076efc921bfacdb48a0c03378139 Mon Sep 17 00:00:00 2001 From: realcow Date: Thu, 27 May 2021 16:59:54 +0900 Subject: [PATCH] fix shortcut on non-macs --- src/js/Keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Keyboard.js b/src/js/Keyboard.js index c12d567..9f8c1f4 100644 --- a/src/js/Keyboard.js +++ b/src/js/Keyboard.js @@ -115,7 +115,7 @@ MD.Keyboard = function(){ if (key === "arrowdown") key = "↓"; if (key === " ") key = "SPACEBAR"; if (key === "shift") key = "⇧"; - if (key === "cmd") key = svgedit.browser.isMac ? "⌘" : "Ctrl"; + if (key === "cmd") key = svgedit.browser.isMac() ? "⌘" : "Ctrl"; shortcutKey.textContent = key; shortcutKeys.appendChild(shortcutKey); shortcut.appendChild(shortcutKeys);