fix save all shortcut

This commit is contained in:
vcoppe
2024-04-18 15:48:07 +02:00
parent 78258454be
commit 194c1eb341

View File

@@ -156,7 +156,7 @@
} else if (e.key === 'd' && (e.metaKey || e.ctrlKey)) { } else if (e.key === 'd' && (e.metaKey || e.ctrlKey)) {
duplicateSelectedFiles(); duplicateSelectedFiles();
e.preventDefault(); e.preventDefault();
} else if (e.key === 's' && (e.metaKey || e.ctrlKey)) { } else if ((e.key === 's' || e.key == 'S') && (e.metaKey || e.ctrlKey)) {
if (e.shiftKey) { if (e.shiftKey) {
exportAllFiles(); exportAllFiles();
} else { } else {
@@ -165,7 +165,6 @@
e.preventDefault(); e.preventDefault();
} else if ((e.key === 'Backspace' || e.key === 'Delete') && (e.metaKey || e.ctrlKey)) { } else if ((e.key === 'Backspace' || e.key === 'Delete') && (e.metaKey || e.ctrlKey)) {
if (e.shiftKey) { if (e.shiftKey) {
console.log('removeAllFiles');
removeAllFiles(); removeAllFiles();
} else { } else {
removeSelectedFiles(); removeSelectedFiles();