mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
add enter to select autocomplete
This commit is contained in:
@ -2081,6 +2081,7 @@ export function setSlashCommandAutoComplete(textarea, isFloating = false) {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 'Enter':
|
||||||
case 'Tab': {
|
case 'Tab': {
|
||||||
if (evt.ctrlKey || evt.altKey || evt.shiftKey) return;
|
if (evt.ctrlKey || evt.altKey || evt.shiftKey) return;
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
Reference in New Issue
Block a user