MCPcopy Index your code
hub / github.com/UI5/webcomponents / _onpointerdown

Method _onpointerdown

packages/main/src/TableRow.ts:135–147  ·  view source on GitHub ↗
(e: PointerEvent)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

_setActiveMethod · 0.95
getActiveElementFunction · 0.85

Tested by

no test coverage detected