()
| 285 | */ |
| 286 | @Method() |
| 287 | async exitInputMode() { |
| 288 | const { inputEl, useInputMode } = this; |
| 289 | if (!useInputMode || !inputEl) { |
| 290 | return; |
| 291 | } |
| 292 | |
| 293 | this.useInputMode = false; |
| 294 | this.inputModeColumn = undefined; |
| 295 | inputEl.blur(); |
| 296 | inputEl.value = ''; |
| 297 | |
| 298 | if (this.destroyKeypressListener) { |
| 299 | this.destroyKeypressListener(); |
| 300 | this.destroyKeypressListener = undefined; |
| 301 | } |
| 302 | |
| 303 | this.emitInputModeChange(); |
| 304 | } |
| 305 | |
| 306 | private onKeyPress = (ev: KeyboardEvent) => { |
| 307 | const { inputEl } = this; |
no outgoing calls
no test coverage detected