1
0
Fork 0
mirror of synced 2024-10-03 10:36:59 +13:00

Fix escape keybind

This commit is contained in:
Andrew Kingston 2023-08-23 15:22:56 +01:00
parent 4759cdffe7
commit 38044cdaea

View file

@ -53,11 +53,8 @@
store.actions.components.selectNext() store.actions.components.selectNext()
}, },
["Escape"]: () => { ["Escape"]: () => {
if ($isActive("./new")) { if ($isActive(`./:componentId/new`)) {
event.preventDefault() $goto(`./${$store.selectedComponentId}`)
event.stopPropagation()
$goto("./")
} }
}, },
} }