(e: KeyboardEvent)
| 526 | } |
| 527 | |
| 528 | async _handleF7Key(e: KeyboardEvent) { |
| 529 | const lastFocusedElement = this._lastFocusedElements[this._getLastFocusedItemIndex]; |
| 530 | if (!this._lastInnerFocusedElement) { |
| 531 | const firstFocusable = await getFirstFocusableElement(this.items[this._focusedItemIndex].item); |
| 532 | firstFocusable?.focus(); |
| 533 | this._lastInnerFocusedElement = firstFocusable || undefined; |
| 534 | } else if (this.carouselItemDomRef(this._focusedItemIndex)[0] === lastFocusedElement && lastFocusedElement !== e.target) { |
| 535 | lastFocusedElement.focus(); |
| 536 | this._lastInnerFocusedElement = e.target as HTMLElement; |
| 537 | } else if (this._lastInnerFocusedElement) { |
| 538 | this._lastInnerFocusedElement.focus(); |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | _observeContentItems() { |
| 543 | if (this.hasMatchingContent) { |
no test coverage detected