From c4f424580eea6b4f8c5c536d098d2ee54c1d2913 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Tue, 23 Apr 2024 11:05:24 -0400 Subject: [PATCH] add comments --- public/scripts/slash-commands/SlashCommandAutoComplete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/slash-commands/SlashCommandAutoComplete.js b/public/scripts/slash-commands/SlashCommandAutoComplete.js index 55f9aba68..769a61358 100644 --- a/public/scripts/slash-commands/SlashCommandAutoComplete.js +++ b/public/scripts/slash-commands/SlashCommandAutoComplete.js @@ -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': {