mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-26 00:40:21 +01:00
capture Tab key on non-selectable auto complete options
This commit is contained in:
parent
1412977083
commit
b75f1d3c2d
@ -735,9 +735,9 @@ export class AutoComplete {
|
||||
case 'Tab': {
|
||||
// pick the selected item to autocomplete
|
||||
if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.value == '') break;
|
||||
if (!this.selectedItem.isSelectable) break;
|
||||
evt.preventDefault();
|
||||
evt.stopImmediatePropagation();
|
||||
if (!this.selectedItem.isSelectable) break;
|
||||
this.select();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user