Index: ui/file_manager/file_manager/foreground/js/file_transfer_controller.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js |
index 8623009e34ee1bb4fec290f3e8c3cd98bc627fe8..2eeb6a7e2d89c3c999d5699baf9595f0a27dee79 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js |
@@ -700,6 +700,13 @@ FileTransferController.prototype.renderThumbnail_ = function() { |
* @private |
*/ |
FileTransferController.prototype.onDragStart_ = function(list, event) { |
+ // If renaming is in progress, drag operation should be used for selecting |
+ // substring of the text. So we don't drag files here. |
+ if (this.listContainer_.renameInput.currentEntry) { |
+ event.preventDefault(); |
+ return; |
+ } |
+ |
// Check if a drag selection should be initiated or not. |
if (list.shouldStartDragSelection(event)) { |
event.preventDefault(); |