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

Method _isDefaultAction

packages/main/src/SplitButton.ts:407–409  ·  view source on GitHub ↗

* Checks if the pressed key is a default action key (Space or Enter). * @param e - keyboard event * @private

(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

405 * @private
406 */
407 _isDefaultAction(e: KeyboardEvent): boolean {
408 return isSpace(e) || isEnter(e);
409 }
410
411 /**
412 * Handles the click event and the focus on the arrow button.

Callers 1

_onKeyDownMethod · 0.95

Calls 2

isSpaceFunction · 0.85
isEnterFunction · 0.85

Tested by

no test coverage detected