@syncfusion/ej2-filemanager 20.3.47 → 20.3.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9150,6 +9150,9 @@ var DetailsView = /** @__PURE__ @class */ (function () {
9150
9150
  this.isNameWidth = false;
9151
9151
  this.pasteOperation = false;
9152
9152
  this.uploadOperation = false;
9153
+ /* istanbul ignore next */
9154
+ // eslint:disable-next-line
9155
+ this.actionDivert = false;
9153
9156
  Grid.Inject(Resize, ContextMenu$1, Sort, VirtualScroll);
9154
9157
  this.parent = parent;
9155
9158
  this.element = select('#' + this.parent.element.id + GRID_ID, this.parent.element);
@@ -10391,8 +10394,6 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10391
10394
  break;
10392
10395
  }
10393
10396
  };
10394
- /* istanbul ignore next */
10395
- // eslint:disable-next-line
10396
10397
  DetailsView.prototype.keyupHandler = function (e) {
10397
10398
  if (!this.isRendered) {
10398
10399
  return;
@@ -10469,8 +10470,13 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10469
10470
  else if (this.gridObj.selectedRowIndex !== -1 && e.action === 'tab') {
10470
10471
  return;
10471
10472
  }
10473
+ else if (!this.actionDivert) {
10474
+ this.addHeaderFocus();
10475
+ this.actionDivert = true;
10476
+ }
10472
10477
  else {
10473
10478
  this.addFocus(0);
10479
+ this.actionDivert = false;
10474
10480
  }
10475
10481
  }
10476
10482
  break;
@@ -10757,6 +10763,18 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10757
10763
  addClass([itemElement], [FOCUS, FOCUSED]);
10758
10764
  }
10759
10765
  };
10766
+ DetailsView.prototype.addHeaderFocus = function () {
10767
+ var treeFocus = select('.e-row', this.element);
10768
+ this.gridObj.element.setAttribute('tabindex', '-1');
10769
+ var nameFocus = select('th.e-fe-grid-name', this.element);
10770
+ nameFocus.setAttribute('tabindex', '0');
10771
+ nameFocus.focus();
10772
+ addClass([nameFocus], [FOCUS, FOCUSED]);
10773
+ treeFocus.setAttribute('tabindex', '0');
10774
+ if (treeFocus.tabIndex === 0 && nameFocus.tabIndex === 0) {
10775
+ removeClass([treeFocus], [FOCUS, FOCUSED]);
10776
+ }
10777
+ };
10760
10778
  DetailsView.prototype.getFocusedItem = function () {
10761
10779
  return select('.' + FOCUSED, this.element);
10762
10780
  };