Don't submit on /help command

This commit is contained in:
Jorge Manrubia
2025-07-02 21:59:53 +02:00
parent 8330bb25fc
commit 33768757db
@@ -42,7 +42,9 @@ export default class extends Controller {
}
submitCommand({ target }) {
this.#submitCommand()
if (!this.#showHelpCommandEntered) {
this.#submitCommand()
}
}
handleKeyPress(event) {
@@ -91,7 +93,6 @@ export default class extends Controller {
}
get #showHelpCommandEntered() {
console.debug("CALLED?", this.inputTarget.value);
return [ "/help", "/?" ].find(command => this.inputTarget.value.includes(command))
}