fix: remove export-to-clip-as-svg shortcut for now (#8660)

pull/8052/merge
David Luzar 4 months ago committed by GitHub
parent b479f3bd65
commit 15ca182333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -182,7 +182,6 @@ export const actionCopyAsSvg = register({
predicate: (elements) => {
return probablySupportsClipboardWriteText && elements.length > 0;
},
keyTest: (event) => event.code === CODES.C && event.ctrlKey && event.shiftKey,
keywords: ["svg", "clipboard", "copy"],
});

@ -23,7 +23,6 @@ export type ShortcutName =
| "sendToBack"
| "bringToFront"
| "copyAsPng"
| "copyAsSvg"
| "group"
| "ungroup"
| "gridMode"
@ -88,7 +87,6 @@ const shortcutMap: Record<ShortcutName, string[]> = {
: getShortcutKey("CtrlOrCmd+Shift+]"),
],
copyAsPng: [getShortcutKey("Shift+Alt+C")],
copyAsSvg: [getShortcutKey("Shift+Ctrl+C")],
group: [getShortcutKey("CtrlOrCmd+G")],
ungroup: [getShortcutKey("CtrlOrCmd+Shift+G")],
gridMode: [getShortcutKey("CtrlOrCmd+'")],

@ -374,10 +374,6 @@ export const HelpDialog = ({ onClose }: { onClose?: () => void }) => {
shortcuts={[getShortcutKey("Shift+Alt+C")]}
/>
)}
<Shortcut
label={t("labels.copyAsSvg")}
shortcuts={[getShortcutKey("Shift+Ctrl+C")]}
/>
<Shortcut
label={t("labels.copyStyles")}
shortcuts={[getShortcutKey("CtrlOrCmd+Alt+C")]}

@ -206,7 +206,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
/>
</g>
</svg>,
"keyTest": [Function],
"keywords": [
"svg",
"clipboard",
@ -4724,7 +4723,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
/>
</g>
</svg>,
"keyTest": [Function],
"keywords": [
"svg",
"clipboard",
@ -5852,7 +5850,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
/>
</g>
</svg>,
"keyTest": [Function],
"keywords": [
"svg",
"clipboard",
@ -6932,7 +6929,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app
/>
</g>
</svg>,
"keyTest": [Function],
"keywords": [
"svg",
"clipboard",
@ -7701,7 +7697,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
/>
</g>
</svg>,
"keyTest": [Function],
"keywords": [
"svg",
"clipboard",
@ -8596,7 +8591,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
/>
</g>
</svg>,
"keyTest": [Function],
"keywords": [
"svg",
"clipboard",

Loading…
Cancel
Save