1
0
Fork 0
mirror of synced 2024-09-18 02:08:34 +12:00

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

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)