Fix escape keybind
This commit is contained in:
parent
4759cdffe7
commit
38044cdaea
|
@ -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("./")
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue