mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 08:42:31 +00:00
copy paste file items
This commit is contained in:
@@ -45,7 +45,13 @@
|
||||
toggleSelectionVisibility,
|
||||
updateSelectionFromKey
|
||||
} from '$lib/stores';
|
||||
import { selectAll, selection } from '$lib/components/file-list/Selection';
|
||||
import {
|
||||
copySelection,
|
||||
cutSelection,
|
||||
pasteSelection,
|
||||
selectAll,
|
||||
selection
|
||||
} from '$lib/components/file-list/Selection';
|
||||
import { derived } from 'svelte/store';
|
||||
import { canUndo, canRedo, dbUtils, fileObservers, settings } from '$lib/db';
|
||||
import { anySelectedLayer } from '$lib/components/layer-control/utils';
|
||||
@@ -368,6 +374,15 @@
|
||||
} else if (e.key === 'd' && (e.metaKey || e.ctrlKey)) {
|
||||
dbUtils.duplicateSelection();
|
||||
e.preventDefault();
|
||||
} else if (e.key === 'c' && (e.metaKey || e.ctrlKey)) {
|
||||
copySelection();
|
||||
e.preventDefault();
|
||||
} else if (e.key === 'x' && (e.metaKey || e.ctrlKey)) {
|
||||
cutSelection();
|
||||
e.preventDefault();
|
||||
} else if (e.key === 'v' && (e.metaKey || e.ctrlKey)) {
|
||||
pasteSelection();
|
||||
e.preventDefault();
|
||||
} else if ((e.key === 's' || e.key == 'S') && (e.metaKey || e.ctrlKey)) {
|
||||
if (e.shiftKey) {
|
||||
exportAllFiles();
|
||||
|
Reference in New Issue
Block a user