@@ -1130,7 +1130,8 @@ private async Task HandleLocationItemDragOverAsync(LocationItem locationItem, It
11301130 if ( locationItem . Path . StartsWith ( Constants . UserEnvironmentPaths . RecycleBinPath , StringComparison . Ordinal ) )
11311131 {
11321132 captionText = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , locationItem . Text ) ;
1133- operationType = DataPackageOperation . Move ;
1133+ // Some applications such as Edge can't raise the drop event by the Move flag (#14008), so we set the Copy flag as well.
1134+ operationType = DataPackageOperation . Move | DataPackageOperation . Copy ;
11341135 }
11351136 else if ( rawEvent . Modifiers . HasFlag ( DragDropModifiers . Alt ) || rawEvent . Modifiers . HasFlag ( DragDropModifiers . Control | DragDropModifiers . Shift ) )
11361137 {
@@ -1145,7 +1146,8 @@ private async Task HandleLocationItemDragOverAsync(LocationItem locationItem, It
11451146 else if ( rawEvent . Modifiers . HasFlag ( DragDropModifiers . Shift ) )
11461147 {
11471148 captionText = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , locationItem . Text ) ;
1148- operationType = DataPackageOperation . Move ;
1149+ // Some applications such as Edge can't raise the drop event by the Move flag (#14008), so we set the Copy flag as well.
1150+ operationType = DataPackageOperation . Move | DataPackageOperation . Copy ;
11491151 }
11501152 else if ( storageItems . Any ( x => x . Item is ZipStorageFile || x . Item is ZipStorageFolder )
11511153 || ZipStorageFolder . IsZipPath ( locationItem . Path ) )
@@ -1156,7 +1158,8 @@ private async Task HandleLocationItemDragOverAsync(LocationItem locationItem, It
11561158 else if ( locationItem . IsDefaultLocation || storageItems . AreItemsInSameDrive ( locationItem . Path ) )
11571159 {
11581160 captionText = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , locationItem . Text ) ;
1159- operationType = DataPackageOperation . Move ;
1161+ // Some applications such as Edge can't raise the drop event by the Move flag (#14008), so we set the Copy flag as well.
1162+ operationType = DataPackageOperation . Move | DataPackageOperation . Copy ;
11601163 }
11611164 else
11621165 {
@@ -1204,12 +1207,14 @@ private async Task HandleDriveItemDragOverAsync(DriveItem driveItem, ItemDragOve
12041207 else if ( args . RawEvent . Modifiers . HasFlag ( DragDropModifiers . Shift ) )
12051208 {
12061209 captionText = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , driveItem . Text ) ;
1207- operationType = DataPackageOperation . Move ;
1210+ // Some applications such as Edge can't raise the drop event by the Move flag (#14008), so we set the Copy flag as well.
1211+ operationType = DataPackageOperation . Move | DataPackageOperation . Copy ;
12081212 }
12091213 else if ( storageItems . AreItemsInSameDrive ( driveItem . Path ) )
12101214 {
12111215 captionText = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , driveItem . Text ) ;
1212- operationType = DataPackageOperation . Move ;
1216+ // Some applications such as Edge can't raise the drop event by the Move flag (#14008), so we set the Copy flag as well.
1217+ operationType = DataPackageOperation . Move | DataPackageOperation . Copy ;
12131218 }
12141219 else
12151220 {
0 commit comments