hide autocomplete on enter-send

This commit is contained in:
LenAnderson
2024-03-27 14:50:55 -04:00
parent 2b5eadfbec
commit 8ea2c12278

View File

@@ -2233,6 +2233,11 @@ export function setNewSlashCommandAutoComplete(textarea, isFloating = false) {
hide(); hide();
return; return;
} }
case 'Enter': {
if (!evt.shiftKey) {
hide();
}
}
} }
} }
if (['Control', 'Shift', 'Alt'].includes(evt.key)) { if (['Control', 'Shift', 'Alt'].includes(evt.key)) {