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

Method _onOverflowKeyDown

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

Source from the content-addressed store, hash-verified

987 }
988
989 async _onOverflowKeyDown(e: KeyboardEvent) {
990 const overflow = e.currentTarget as HTMLElement;
991 const isEndOverflow = overflow.classList.contains("ui5-tc__overflow--end");
992 const isStartOverflow = overflow.classList.contains("ui5-tc__overflow--start");
993
994 if (isDown(e) || (isStartOverflow && isLeft(e)) || (isEndOverflow && isRight(e))) {
995 e.stopPropagation();
996 e.preventDefault();
997 await this._onOverflowClick(e);
998 }
999 }
1000
1001 _setItemsForStrip() {
1002 const tabStrip = this._getTabStrip();

Callers

nothing calls this directly

Calls 5

_onOverflowClickMethod · 0.95
isDownFunction · 0.85
isLeftFunction · 0.85
isRightFunction · 0.85
containsMethod · 0.80

Tested by

no test coverage detected