From 2fbb4aade512e2629d79881cd940e60ef99d6d5e Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sat, 20 Apr 2024 09:00:57 -0400 Subject: [PATCH] fix send on enter when no match --- public/scripts/slash-commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index a751c7d79..6a53983eb 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2177,7 +2177,7 @@ export async function setSlashCommandAutoComplete(textarea, isFloating = false) case 'Enter': case 'Tab': { // pick the selected item to autocomplete - if (evt.ctrlKey || evt.altKey || evt.shiftKey || selectedItem.type == OPTION_TYPE.BLANK) return; + if (evt.ctrlKey || evt.altKey || evt.shiftKey || selectedItem.type == OPTION_TYPE.BLANK) break; evt.preventDefault(); evt.stopImmediatePropagation(); select();