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

Method _onkeydown

packages/compat/src/Table.ts:540–577  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

538 }
539
540 _onkeydown(e: KeyboardEvent) {
541 if (isTabNext(e) || isTabPrevious(e)) {
542 this._handleTab(e);
543 }
544
545 if (isCtrlA(e)) {
546 e.preventDefault();
547 this.isMultiSelect && this._selectAll();
548 }
549
550 if (isUpAlt(e) || isDownAlt(e)) {
551 this._handleArrowAlt(e);
552 }
553
554 if ((isUpShift(e) || isDownShift(e)) && this.isMultiSelect) {
555 this._handleArrowNav(e);
556 }
557
558 if (isHomeCtrl(e)) {
559 e.preventDefault();
560
561 this._itemNavigation._handleHome();
562 this._itemNavigation._applyTabIndex();
563 this._itemNavigation._focusCurrentItem();
564 }
565
566 if (isEndCtrl(e)) {
567 e.preventDefault();
568
569 this._itemNavigation._handleEnd();
570 this._itemNavigation._applyTabIndex();
571 this._itemNavigation._focusCurrentItem();
572 }
573
574 if ((isHomeShift(e) || isEndShift(e)) && this.isMultiSelect) {
575 this._handleHomeEndSelection(e);
576 }
577 }
578
579 _handleTab(e: KeyboardEvent) {
580 const isNext = isTabNext(e);

Callers

nothing calls this directly

Calls 15

_handleTabMethod · 0.95
_selectAllMethod · 0.95
_handleArrowAltMethod · 0.95
_handleArrowNavMethod · 0.95
isTabNextFunction · 0.85
isTabPreviousFunction · 0.85
isCtrlAFunction · 0.85
isUpAltFunction · 0.85
isDownAltFunction · 0.85
isUpShiftFunction · 0.85
isDownShiftFunction · 0.85

Tested by

no test coverage detected