@syncfusion/ej2-filemanager 27.1.51 → 27.1.52

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.
@@ -5271,7 +5271,6 @@ class LargeIconsView {
5271
5271
  if (toBind) {
5272
5272
  this.clickObj = new Touch(this.element, {
5273
5273
  tap: (eve) => {
5274
- eve.originalEvent.preventDefault();
5275
5274
  if (this.parent.isDevice) {
5276
5275
  this.tapCount = eve.tapCount;
5277
5276
  this.tapEvent = eve;
@@ -10536,6 +10535,7 @@ class DetailsView {
10536
10535
  this.isRendered = true;
10537
10536
  this.isLoaded = false;
10538
10537
  this.isNameWidth = false;
10538
+ this.isMultiSelect = false;
10539
10539
  this.pasteOperation = false;
10540
10540
  this.uploadOperation = false;
10541
10541
  Grid.Inject(Resize, ContextMenu$2, Sort, VirtualScroll);
@@ -11619,6 +11619,17 @@ class DetailsView {
11619
11619
  };
11620
11620
  this.parent.trigger('fileSelection', eventArgs);
11621
11621
  args.cancel = eventArgs.cancel;
11622
+ if (!this.isMultiSelect) {
11623
+ this.isMultiSelect = true;
11624
+ if ((args.isShiftPressed || args.isCtrlPressed) && !this.parent.allowMultiSelection && (args.target && args.target.parentElement && !args.target.parentElement.classList.contains('e-checkbox-wrapper'))) {
11625
+ args.cancel = true;
11626
+ const rowIndex = (args && args.rowIndexes)
11627
+ ? args.rowIndexes[args.rowIndexes.length - 1]
11628
+ : args.rowIndex;
11629
+ this.gridObj.selectRow(rowIndex);
11630
+ }
11631
+ this.isMultiSelect = false;
11632
+ }
11622
11633
  }
11623
11634
  /* istanbul ignore next */
11624
11635
  onSelected(args) {