Fix escape keybind

This commit is contained in:
Andrew Kingston 2023-08-23 15:22:56 +01:00
parent 4759cdffe7
commit 38044cdaea
1 changed files with 2 additions and 5 deletions

View File

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