@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.
@@ -5426,7 +5426,6 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
5426
5426
  if (toBind) {
5427
5427
  this.clickObj = new Touch(this.element, {
5428
5428
  tap: function (eve) {
5429
- eve.originalEvent.preventDefault();
5430
5429
  if (_this.parent.isDevice) {
5431
5430
  _this.tapCount = eve.tapCount;
5432
5431
  _this.tapEvent = eve;
@@ -10736,6 +10735,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10736
10735
  this.isRendered = true;
10737
10736
  this.isLoaded = false;
10738
10737
  this.isNameWidth = false;
10738
+ this.isMultiSelect = false;
10739
10739
  this.pasteOperation = false;
10740
10740
  this.uploadOperation = false;
10741
10741
  Grid.Inject(Resize, ContextMenu$2, Sort, VirtualScroll);
@@ -11827,6 +11827,17 @@ var DetailsView = /** @__PURE__ @class */ (function () {
11827
11827
  };
11828
11828
  this.parent.trigger('fileSelection', eventArgs);
11829
11829
  args.cancel = eventArgs.cancel;
11830
+ if (!this.isMultiSelect) {
11831
+ this.isMultiSelect = true;
11832
+ if ((args.isShiftPressed || args.isCtrlPressed) && !this.parent.allowMultiSelection && (args.target && args.target.parentElement && !args.target.parentElement.classList.contains('e-checkbox-wrapper'))) {
11833
+ args.cancel = true;
11834
+ var rowIndex = (args && args.rowIndexes)
11835
+ ? args.rowIndexes[args.rowIndexes.length - 1]
11836
+ : args.rowIndex;
11837
+ this.gridObj.selectRow(rowIndex);
11838
+ }
11839
+ this.isMultiSelect = false;
11840
+ }
11830
11841
  };
11831
11842
  /* istanbul ignore next */
11832
11843
  DetailsView.prototype.onSelected = function (args) {