mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix autocomplete select on blank / "no match"
This commit is contained in:
@ -2318,7 +2318,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) return;
|
||||
if (evt.ctrlKey || evt.altKey || evt.shiftKey || selectedItem.type == OPTION_TYPE.BLANK) return;
|
||||
evt.preventDefault();
|
||||
evt.stopImmediatePropagation();
|
||||
select();
|
||||
|
Reference in New Issue
Block a user