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

Method _handleEnd

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

Source from the content-addressed store, hash-verified

1134 }
1135
1136 _handleEnd(e: KeyboardEvent) {
1137 const tokens = this._tokenizer.tokens;
1138 const lastTokenIdx = tokens.length - 1;
1139 const shouldFocusInput = e.target === tokens[lastTokenIdx] && tokens[lastTokenIdx] === this.shadowRoot!.activeElement;
1140
1141 if (shouldFocusInput) {
1142 e.preventDefault();
1143 this._inputDom.focus();
1144 }
1145 }
1146
1147 _handleTab() {
1148 this.open = false;

Callers 2

_onTokenizerKeydownMethod · 0.95
_onItemKeydownMethod · 0.45

Calls 1

focusMethod · 0.45

Tested by

no test coverage detected