MCPcopy Index your code
hub / github.com/UI5/webcomponents / _onkeydown

Method _onkeydown

packages/main/src/Carousel.ts:444–469  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

442 }
443
444 _onkeydown(e: KeyboardEvent) {
445 if (isF7(e)) {
446 this._handleF7Key(e);
447 return;
448 }
449 if (isHome(e)) {
450 this._handleHome(e);
451 }
452 if (isEnd(e)) {
453 this._handleEnd(e);
454 }
455 if (isPageUp(e)) {
456 this._handlePageUp(e);
457 }
458 if (isPageDown(e)) {
459 this._handlePageDown(e);
460 }
461
462 if (isLeft(e) || isUp(e)) {
463 e.preventDefault();
464 this.navigateLeft();
465 } else if (isRight(e) || isDown(e)) {
466 e.preventDefault();
467 this.navigateRight();
468 }
469 }
470
471 _onfocusin(e: FocusEvent) {
472 const target = e.target as HTMLElement;

Callers

nothing calls this directly

Calls 15

_handleF7KeyMethod · 0.95
_handleHomeMethod · 0.95
_handleEndMethod · 0.95
_handlePageUpMethod · 0.95
_handlePageDownMethod · 0.95
navigateLeftMethod · 0.95
navigateRightMethod · 0.95
isF7Function · 0.85
isHomeFunction · 0.85
isEndFunction · 0.85
isPageUpFunction · 0.85
isPageDownFunction · 0.85

Tested by

no test coverage detected