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

Method _getValueOnkeyDown

packages/main/src/StepInput.ts:753–757  ·  view source on GitHub ↗
(e: KeyboardEvent, inputValue: string, cursorPosition?: number)

Source from the content-addressed store, hash-verified

751 }
752
753 _getValueOnkeyDown(e: KeyboardEvent, inputValue: string, cursorPosition?: number) {
754 const typedValue = `${inputValue.substring(0, cursorPosition)}${e.key}${inputValue.substring(cursorPosition!)}`;
755 const updatedValue = this._removeGroupSeparators(typedValue);
756 return updatedValue;
757 }
758
759 _removeGroupSeparators(value: string) {
760 const groupSeparator = this.groupSeparator;

Callers 1

_onkeydownMethod · 0.95

Calls 1

Tested by

no test coverage detected