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

Method _handleHome

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

Source from the content-addressed store, hash-verified

1125 }
1126
1127 _handleHome(e: KeyboardEvent) {
1128 const shouldFocusToken = this._isFocusInside && (e.target as HTMLInputElement).selectionStart === 0 && this._tokenizer.tokens.length > 0;
1129
1130 if (shouldFocusToken) {
1131 e.preventDefault();
1132 this._tokenizer.tokens[0].focus();
1133 }
1134 }
1135
1136 _handleEnd(e: KeyboardEvent) {
1137 const tokens = this._tokenizer.tokens;

Callers 2

_onTokenizerKeydownMethod · 0.95
_onItemKeydownMethod · 0.45

Calls 1

focusMethod · 0.45

Tested by

no test coverage detected