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");
|
||||
return;
|
||||
}
|
||||
if (e.key === "Enter" && comps[selectedIdx()].kind !== "no-results") {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
acceptCompletion(comps[selectedIdx()]);
|
||||
setShowCompletions(false);
|
||||
return;
|
||||
}
|
||||
if (e.key === "Escape") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue