mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
add comments
This commit is contained in:
@ -829,6 +829,7 @@ export class SlashCommandAutoComplete {
|
|||||||
async handleKeyDown(evt) {
|
async handleKeyDown(evt) {
|
||||||
// autocomplete is shown and cursor at end of current command name (or inside name and typed or forced)
|
// autocomplete is shown and cursor at end of current command name (or inside name and typed or forced)
|
||||||
if (this.isActive && this.isReplaceable) {
|
if (this.isActive && this.isReplaceable) {
|
||||||
|
// actions in the list
|
||||||
switch (evt.key) {
|
switch (evt.key) {
|
||||||
case 'ArrowUp': {
|
case 'ArrowUp': {
|
||||||
// select previous item
|
// select previous item
|
||||||
@ -863,7 +864,7 @@ export class SlashCommandAutoComplete {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// autocomplete is shown, cursor can be anywhere
|
// details are shown, cursor can be anywhere
|
||||||
if (this.isActive) {
|
if (this.isActive) {
|
||||||
switch (evt.key) {
|
switch (evt.key) {
|
||||||
case 'Escape': {
|
case 'Escape': {
|
||||||
|
Reference in New Issue
Block a user