Merge branch 'gpxstudio:main' into zoom-to-fit

This commit is contained in:
mbof 2024-08-24 11:22:18 -07:00 committed by GitHub
commit 5bd7cf6938
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,12 +509,14 @@
dbUtils.undo(); dbUtils.undo();
} }
} 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 (!targetInput) {
dbUtils.deleteAllFiles(); if (e.shiftKey) {
} else { dbUtils.deleteAllFiles();
dbUtils.deleteSelection(); } else {
dbUtils.deleteSelection();
}
e.preventDefault();
} }
e.preventDefault();
} else if (e.key === 'a' && (e.metaKey || e.ctrlKey)) { } else if (e.key === 'a' && (e.metaKey || e.ctrlKey)) {
if (!targetInput) { if (!targetInput) {
selectAll(); selectAll();