MCPcopy Create free account
hub / github.com/UI5/webcomponents / _onTabStripKeyUp

Method _onTabStripKeyUp

packages/main/src/TabContainer.ts:849–863  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

847 }
848
849 _onTabStripKeyUp(e: KeyboardEvent) {
850 const tab = getTabInStrip(e.target as HTMLElement);
851 if (!tab || tab.realTabReference.disabled) {
852 return;
853 }
854
855 if (isSpace(e)) {
856 e.preventDefault();
857 if (tab.realTabReference.isSingleClickArea) {
858 this._onTabStripClick(e);
859 } else {
860 this._onHeaderItemSelect(tab, e);
861 }
862 }
863 }
864
865 _onHeaderItemSelect(tab: HTMLElement, originalEvent?: Event) {
866 if (!tab.hasAttribute("disabled")) {

Callers

nothing calls this directly

Calls 4

_onTabStripClickMethod · 0.95
_onHeaderItemSelectMethod · 0.95
getTabInStripFunction · 0.85
isSpaceFunction · 0.85

Tested by

no test coverage detected