Make entire ui store state public
This commit is contained in:
parent
aaca49f1d2
commit
6a3d701e82
2 changed files with 43 additions and 37 deletions
|
|
@ -10,7 +10,7 @@ window.addEventListener("keypress", (ev) => {
|
|||
if (document.activeElement !== document.body) return;
|
||||
|
||||
if (ev.key === "Escape") {
|
||||
if (ui.mode !== "focus") {
|
||||
if (ui.mode.type !== "focus") {
|
||||
ui.focus();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue