fix(journal): close completions on Enter key press
This commit is contained in:
parent
9790205468
commit
52563fd3ef
|
|
@ -330,9 +330,9 @@ export const JournalInput: Component = () => {
|
||||||
selectCompletion("up");
|
selectCompletion("up");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (e.key === "Enter" && comps[selectedIdx()].kind !== "no-results") {
|
if (e.key === "Enter") {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
acceptCompletion(comps[selectedIdx()]);
|
setShowCompletions(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (e.key === "Escape") {
|
if (e.key === "Escape") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue