(key: string | KeypressEvent)
| 149 | } |
| 150 | |
| 151 | keypress(key: string | KeypressEvent): void { |
| 152 | if (typeof key === 'string') { |
| 153 | this.#input.emit('keypress', null, { name: key }); |
| 154 | } else { |
| 155 | this.#input.emit('keypress', null, key); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | type(text: string): void { |
| 160 | this.#input.write(text); |
no outgoing calls
no test coverage detected