fix shortcut on non-macs

master
realcow 2021-05-27 16:59:54 +09:00
parent d1941d7dde
commit 028f5b4931
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ MD.Keyboard = function(){
if (key === "arrowdown") key = "↓"; if (key === "arrowdown") key = "↓";
if (key === " ") key = "SPACEBAR"; if (key === " ") key = "SPACEBAR";
if (key === "shift") key = "⇧"; if (key === "shift") key = "⇧";
if (key === "cmd") key = svgedit.browser.isMac ? "⌘" : "Ctrl"; if (key === "cmd") key = svgedit.browser.isMac() ? "⌘" : "Ctrl";
shortcutKey.textContent = key; shortcutKey.textContent = key;
shortcutKeys.appendChild(shortcutKey); shortcutKeys.appendChild(shortcutKey);
shortcut.appendChild(shortcutKeys); shortcut.appendChild(shortcutKeys);