Prevent double-triggering keyboard shortcuts on macOS

This commit is contained in:
Skyler Lehmkuhl 2024-12-29 17:25:16 -05:00
parent eac40df493
commit 0d71f4d37b
1 changed files with 0 additions and 43 deletions

View File

@ -2884,52 +2884,9 @@ window.addEventListener("keydown", (e) => {
console.log("Spacebar pressed")
playPause()
break;
case config.shortcuts.new:
newFile()
break;
case config.shortcuts.save:
save()
break;
case config.shortcuts.saveAs:
saveAs()
break;
case config.shortcuts.open:
open()
break;
case config.shortcuts.import:
importFile()
break;
case config.shortcuts.quit:
quit()
break;
case config.shortcuts.undo:
undo()
break;
case config.shortcuts.redo:
redo()
break;
case config.shortcuts.copy:
copy()
break;
case config.shortcuts.paste:
paste()
break;
case config.shortcuts.delete:
delete_action()
break;
case config.shortcuts.selectAll:
actions.selectAll.create()
e.preventDefault()
break;
case config.shortcuts.group:
actions.group.create()
break;
case config.shortcuts.zoomIn:
zoomIn()
break;
case config.shortcuts.zoomOut:
zoomOut()
break;
// TODO: put these in shortcuts
case "<mod>ArrowRight":
advanceFrame()