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

Method _isArrowKeyAction

packages/main/src/SplitButton.ts:398–400  ·  view source on GitHub ↗

* Checks if the pressed key is an arrow key. * @param e - keyboard event * @private

(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

396 * @private
397 */
398 _isArrowKeyAction(e: KeyboardEvent): boolean {
399 return isDown(e) || isUp(e) || isDownAlt(e) || isUpAlt(e) || isF4(e);
400 }
401
402 /**
403 * Checks if the pressed key is a default action key (Space or Enter).

Callers 2

_onKeyDownMethod · 0.95
_onKeyUpMethod · 0.95

Calls 5

isDownFunction · 0.85
isUpFunction · 0.85
isDownAltFunction · 0.85
isUpAltFunction · 0.85
isF4Function · 0.85

Tested by

no test coverage detected