add comments

This commit is contained in:
LenAnderson
2024-04-23 11:05:24 -04:00
parent 6ec508612e
commit c4f424580e

View File

@ -829,6 +829,7 @@ export class SlashCommandAutoComplete {
async handleKeyDown(evt) {
// autocomplete is shown and cursor at end of current command name (or inside name and typed or forced)
if (this.isActive && this.isReplaceable) {
// actions in the list
switch (evt.key) {
case 'ArrowUp': {
// 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) {
switch (evt.key) {
case 'Escape': {