(e: KeyboardEvent)
| 579 | } |
| 580 | |
| 581 | _onkeydown(e: KeyboardEvent) { |
| 582 | if (isShift(e) || isEscape(e)) { |
| 583 | this._cancelAction = true; |
| 584 | } else if (isSpace(e)) { |
| 585 | this._isSpacePressed = true; |
| 586 | } |
| 587 | |
| 588 | if ((isSpace(e) || isEnter(e))) { |
| 589 | this._setActiveState(true); |
| 590 | } else if (this._cancelAction) { |
| 591 | this._setActiveState(false); |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | _onkeyup(e: KeyboardEvent) { |
| 596 | const isSpaceKey = isSpace(e); |
nothing calls this directly
no test coverage detected