()
| 421 | for (const C5 of s2) C5(); |
| 422 | } |
| 423 | unsubscribe() { |
| 424 | this.subscribers.clear(); |
| 425 | } |
| 426 | onKeypress(u3, F5) { |
| 427 | if (this.state === "error" && (this.state = "active"), F5?.name && !this._track && z3.has(F5.name) && this.emit("cursor", z3.get(F5.name)), F5?.name && lD2.has(F5.name) && this.emit("cursor", F5.name), u3 && (u3.toLowerCase() === "y" || u3.toLowerCase() === "n") && this.emit("confirm", u3.toLowerCase() === "y"), u3 === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u3 && this.emit("key", u3.toLowerCase()), F5?.name === "return") { |
| 428 | if (this.opts.validate) { |
no test coverage detected