fix(journal): close completions on Enter key press
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user