* Handles the default action and the active state of the respective button. * @param e - keyboard event * @private
(e: KeyboardEvent)
| 425 | * @private |
| 426 | */ |
| 427 | _handleDefaultAction(e: KeyboardEvent) { |
| 428 | e.preventDefault(); |
| 429 | const target = e.target as Button; |
| 430 | |
| 431 | if (isEnter(e)) { |
| 432 | if (this.arrowButton && target === this.arrowButton) { |
| 433 | this._activeArrowButton = true; |
| 434 | this._fireArrowClick(); |
| 435 | return; |
| 436 | } |
| 437 | |
| 438 | this._textButtonActive = true; |
| 439 | this._fireClick(e); |
| 440 | return; |
| 441 | } |
| 442 | |
| 443 | if (isTabPrevious(e) || isTabNext(e)) { |
| 444 | this._resetActionButtonStates(); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | get effectiveActiveArrowButton() { |
| 449 | return this.activeArrowButton || this._activeArrowButton; |
no test coverage detected