mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix send on enter when no match
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user