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

Method onEnter

packages/main/src/features/InputSuggestions.ts:106–118  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

104 }
105
106 onEnter(e: KeyboardEvent) {
107 if (this._isGroupItem) {
108 e.preventDefault();
109 return false;
110 }
111
112 if (this._isItemOnTarget()) {
113 this.onItemSelected(this._selectedItem, true /* keyboardUsed */);
114 return true;
115 }
116
117 return false;
118 }
119
120 onPageUp(e: KeyboardEvent) {
121 e.preventDefault();

Callers 1

_handleEnterMethod · 0.80

Calls 2

_isItemOnTargetMethod · 0.95
onItemSelectedMethod · 0.95

Tested by

no test coverage detected