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

Method _onColumnHeaderClick

packages/compat/src/Table.ts:872–883  ·  view source on GitHub ↗
(e: MouseEvent | KeyboardEvent)

Source from the content-addressed store, hash-verified

870 }
871
872 _onColumnHeaderClick(e: MouseEvent | KeyboardEvent) {
873 if (!e.target) {
874 this.columnHeader!.focus();
875 }
876
877 const target = getNormalizedTarget(e.target as HTMLElement);
878 const isNestedElement = this.columnHeaderTabbables.includes(target);
879
880 if (!isNestedElement) {
881 this.columnHeader!.focus();
882 }
883 }
884
885 _onColumnHeaderKeydown(e: KeyboardEvent) {
886 if (isSpace(e)) {

Callers 1

_handleArrowAltMethod · 0.95

Calls 2

getNormalizedTargetFunction · 0.85
focusMethod · 0.45

Tested by

no test coverage detected