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

Method _onTokenizerKeydown

packages/main/src/MultiComboBox.ts:1517–1544  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

1515 }
1516
1517 _onTokenizerKeydown(e: KeyboardEvent) {
1518 if ((isRight(e) && this.effectiveDir === "ltr") || (isLeft(e) && this.effectiveDir === "rtl")) {
1519 const lastTokenIndex = this._tokenizer.tokens.length - this._tokenizer.overflownTokens.length - 1;
1520
1521 if (e.target === this._tokenizer.tokens[lastTokenIndex]) {
1522 setTimeout(() => {
1523 this._inputDom.focus();
1524 }, 0);
1525 }
1526 }
1527
1528 if (isInsertShift(e)) {
1529 this._handleInsertPaste(e);
1530 }
1531
1532 if (isHome(e)) {
1533 this._handleHome(e);
1534 }
1535
1536 if (isEnd(e)) {
1537 this._handleEnd(e);
1538 }
1539
1540 if (isShow(e) && !this.readonly && !this.disabled) {
1541 this._preventTokenizerToggle = true;
1542 this._handleShow(e);
1543 }
1544 }
1545
1546 _filterItems(str: string) {
1547 const itemsToFilter = this._getItems().filter(item => !item.isGroupItem);

Callers

nothing calls this directly

Calls 11

_handleInsertPasteMethod · 0.95
_handleHomeMethod · 0.95
_handleEndMethod · 0.95
_handleShowMethod · 0.95
isRightFunction · 0.85
isLeftFunction · 0.85
isInsertShiftFunction · 0.85
isHomeFunction · 0.85
isEndFunction · 0.85
isShowFunction · 0.85
focusMethod · 0.45

Tested by

no test coverage detected