(e: KeyboardEvent)
| 287 | } |
| 288 | |
| 289 | _onTokenizerKeydown(e: KeyboardEvent) { |
| 290 | const rightCtrl = isRightCtrl(e); |
| 291 | if (isRight(e) || isDown(e) || isEnd(e) || rightCtrl) { |
| 292 | e.preventDefault(); |
| 293 | const lastTokenIndex = this.tokens.length - 1; |
| 294 | |
| 295 | if (e.target === this.tokens[lastTokenIndex] && this.tokens[lastTokenIndex] === document.activeElement) { |
| 296 | setTimeout(() => { |
| 297 | this.focus(); |
| 298 | }, 0); |
| 299 | } |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | _handleLeft(e: KeyboardEvent) { |
| 304 | const cursorPosition = this.getDomRef()!.querySelector(`input`)!.selectionStart; |
nothing calls this directly
no test coverage detected