mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-14 02:42:08 +02: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': {
|
case 'Tab': {
|
||||||
// pick the selected item to autocomplete
|
// pick the selected item to autocomplete
|
||||||
if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.value == '') break;
|
if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.value == '') break;
|
||||||
if (!this.selectedItem.isSelectable) break;
|
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
evt.stopImmediatePropagation();
|
evt.stopImmediatePropagation();
|
||||||
|
if (!this.selectedItem.isSelectable) break;
|
||||||
this.select();
|
this.select();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user