fix(ui): fix todo command does nothing

This commit is contained in:
Spaghetti 2025-12-08 16:51:10 +00:00
parent 4668c4714b
commit e74154a293

View file

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