fix(ui): fix todo command does nothing (#5329)

This commit is contained in:
spaghetti-coder 2025-12-09 02:20:57 +02:00 committed by GitHub
parent 618db89f4f
commit 9ea27ee61f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ export function useSuggestions<T>({
if (["Enter", "Tab"].includes(e.code)) { if (["Enter", "Tab"].includes(e.code)) {
handleAutocomplete(suggestions[selected]); handleAutocomplete(suggestions[selected]);
e.preventDefault(); e.preventDefault();
e.stopPropagation(); // Prevent other listeners to be executed
e.stopImmediatePropagation();
} }
}; };