feat: improve drag & drop

* permits multiple drag & drop
 * synchronize grid & list view on selection
 * permits copy during ddrag & drop (use sift/alt key according your OS)
 * use batch move / copy on drag & drop
This commit is contained in:
Edouard Vanbelle
2026-03-25 18:49:38 +01:00
parent 5b821a7eab
commit 534d4dc190
10 changed files with 386 additions and 173 deletions
+9
View File
@@ -182,6 +182,8 @@ function switchToSharedSection() {
window.sharedView.init();
window.sharedView.show();
}
if (window.multiSelect) window.multiSelect.clear();
}
function switchToFilesSection() {
@@ -208,6 +210,7 @@ function switchToFilesSection() {
window.app.currentPath = window.app.userHomeFolderId || '';
window.app.breadcrumbPath = [];
window.ui.updateBreadcrumb();
if (window.multiSelect) window.multiSelect.clear();
window.loadFiles();
}
@@ -246,6 +249,9 @@ function switchToFavoritesSection() {
`;
}
}
if (window.multiSelect) window.multiSelect.clear();
}
function switchToRecentFilesSection() {
@@ -282,6 +288,7 @@ function switchToRecentFilesSection() {
`;
}
}
if (window.multiSelect) window.multiSelect.clear();
}
function switchToPhotosSection() {
@@ -307,6 +314,8 @@ function switchToPhotosSection() {
if (window.photosView) {
window.photosView.show();
}
if (window.multiSelect) window.multiSelect.clear();
}
function switchToTrashSection() {