Allow use of meta key as well as control key for modifier shortcuts

This commit is contained in:
Andrew Kingston 2022-08-02 10:01:46 +01:00
parent a91c043c4b
commit ac5fe23412
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@
}
const component = get(selectedComponent)
try {
if (e.ctrlKey) {
if (e.ctrlKey || e.metaKey) {
if (e.key === "ArrowUp") {
e.preventDefault()
await store.actions.components.moveUp(component)