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

Method _onfocusin

packages/compat/src/TableRow.ts:270–277  ·  view source on GitHub ↗
(e: FocusEvent, forceSelfFocus = false)

Source from the content-addressed store, hash-verified

268 }
269
270 _onfocusin(e: FocusEvent, forceSelfFocus = false) {
271 if (forceSelfFocus || this._activeElementHasAttribute("ui5-table-cell")) {
272 this.root.focus();
273 this.activate();
274 }
275
276 this.fireDecoratorEvent("_focused");
277 }
278
279 _onrowclick(e: MouseEvent) {
280 const checkboxPressed = (e.target as HTMLElement).classList.contains("ui5-multi-select-checkbox");

Callers 1

_onrowclickMethod · 0.95

Calls 3

activateMethod · 0.95
focusMethod · 0.45

Tested by

no test coverage detected