@syncfusion/ej2-filemanager 20.3.47 → 20.3.49

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.
@@ -8963,6 +8963,9 @@ class DetailsView {
8963
8963
  this.isNameWidth = false;
8964
8964
  this.pasteOperation = false;
8965
8965
  this.uploadOperation = false;
8966
+ /* istanbul ignore next */
8967
+ // eslint:disable-next-line
8968
+ this.actionDivert = false;
8966
8969
  Grid.Inject(Resize, ContextMenu$1, Sort, VirtualScroll);
8967
8970
  this.parent = parent;
8968
8971
  this.element = select('#' + this.parent.element.id + GRID_ID, this.parent.element);
@@ -10201,8 +10204,6 @@ class DetailsView {
10201
10204
  break;
10202
10205
  }
10203
10206
  }
10204
- /* istanbul ignore next */
10205
- // eslint:disable-next-line
10206
10207
  keyupHandler(e) {
10207
10208
  if (!this.isRendered) {
10208
10209
  return;
@@ -10279,8 +10280,13 @@ class DetailsView {
10279
10280
  else if (this.gridObj.selectedRowIndex !== -1 && e.action === 'tab') {
10280
10281
  return;
10281
10282
  }
10283
+ else if (!this.actionDivert) {
10284
+ this.addHeaderFocus();
10285
+ this.actionDivert = true;
10286
+ }
10282
10287
  else {
10283
10288
  this.addFocus(0);
10289
+ this.actionDivert = false;
10284
10290
  }
10285
10291
  }
10286
10292
  break;
@@ -10567,6 +10573,18 @@ class DetailsView {
10567
10573
  addClass([itemElement], [FOCUS, FOCUSED]);
10568
10574
  }
10569
10575
  }
10576
+ addHeaderFocus() {
10577
+ const treeFocus = select('.e-row', this.element);
10578
+ this.gridObj.element.setAttribute('tabindex', '-1');
10579
+ const nameFocus = select('th.e-fe-grid-name', this.element);
10580
+ nameFocus.setAttribute('tabindex', '0');
10581
+ nameFocus.focus();
10582
+ addClass([nameFocus], [FOCUS, FOCUSED]);
10583
+ treeFocus.setAttribute('tabindex', '0');
10584
+ if (treeFocus.tabIndex === 0 && nameFocus.tabIndex === 0) {
10585
+ removeClass([treeFocus], [FOCUS, FOCUSED]);
10586
+ }
10587
+ }
10570
10588
  getFocusedItem() {
10571
10589
  return select('.' + FOCUSED, this.element);
10572
10590
  }