(e: PointerEvent)
| 133 | } |
| 134 | |
| 135 | async _onpointerdown(e: PointerEvent) { |
| 136 | if (e.button !== 0 || !this._isInteractive) { |
| 137 | return; |
| 138 | } |
| 139 | |
| 140 | const composedPath = e.composedPath(); |
| 141 | composedPath.splice(composedPath.indexOf(this)); |
| 142 | await new Promise(resolve => setTimeout(resolve)); // wait for the focus to be set |
| 143 | const activeElement = getActiveElement() as Element; |
| 144 | if (!composedPath.includes(activeElement)) { |
| 145 | this._setActive("pointerup"); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | _onkeydown(e: KeyboardEvent, eventOrigin: HTMLElement) { |
| 150 | super._onkeydown(e, eventOrigin); |
nothing calls this directly
no test coverage detected