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();
}
} else if ((e.key === 'Backspace' || e.key === 'Delete') && (e.metaKey || e.ctrlKey)) {
if (e.shiftKey) {
dbUtils.deleteAllFiles();
} else {
dbUtils.deleteSelection();
if (!targetInput) {
if (e.shiftKey) {
dbUtils.deleteAllFiles();
} else {
dbUtils.deleteSelection();
}
e.preventDefault();
}
e.preventDefault();
} else if (e.key === 'a' && (e.metaKey || e.ctrlKey)) {
if (!targetInput) {
selectAll();