fix: remove export-to-clip-as-svg shortcut for now (#8660)
This commit is contained in:
parent
b479f3bd65
commit
15ca182333
@ -182,7 +182,6 @@ export const actionCopyAsSvg = register({
|
|||||||
predicate: (elements) => {
|
predicate: (elements) => {
|
||||||
return probablySupportsClipboardWriteText && elements.length > 0;
|
return probablySupportsClipboardWriteText && elements.length > 0;
|
||||||
},
|
},
|
||||||
keyTest: (event) => event.code === CODES.C && event.ctrlKey && event.shiftKey,
|
|
||||||
keywords: ["svg", "clipboard", "copy"],
|
keywords: ["svg", "clipboard", "copy"],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ export type ShortcutName =
|
|||||||
| "sendToBack"
|
| "sendToBack"
|
||||||
| "bringToFront"
|
| "bringToFront"
|
||||||
| "copyAsPng"
|
| "copyAsPng"
|
||||||
| "copyAsSvg"
|
|
||||||
| "group"
|
| "group"
|
||||||
| "ungroup"
|
| "ungroup"
|
||||||
| "gridMode"
|
| "gridMode"
|
||||||
@ -88,7 +87,6 @@ const shortcutMap: Record<ShortcutName, string[]> = {
|
|||||||
: getShortcutKey("CtrlOrCmd+Shift+]"),
|
: getShortcutKey("CtrlOrCmd+Shift+]"),
|
||||||
],
|
],
|
||||||
copyAsPng: [getShortcutKey("Shift+Alt+C")],
|
copyAsPng: [getShortcutKey("Shift+Alt+C")],
|
||||||
copyAsSvg: [getShortcutKey("Shift+Ctrl+C")],
|
|
||||||
group: [getShortcutKey("CtrlOrCmd+G")],
|
group: [getShortcutKey("CtrlOrCmd+G")],
|
||||||
ungroup: [getShortcutKey("CtrlOrCmd+Shift+G")],
|
ungroup: [getShortcutKey("CtrlOrCmd+Shift+G")],
|
||||||
gridMode: [getShortcutKey("CtrlOrCmd+'")],
|
gridMode: [getShortcutKey("CtrlOrCmd+'")],
|
||||||
|
@ -374,10 +374,6 @@ export const HelpDialog = ({ onClose }: { onClose?: () => void }) => {
|
|||||||
shortcuts={[getShortcutKey("Shift+Alt+C")]}
|
shortcuts={[getShortcutKey("Shift+Alt+C")]}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Shortcut
|
|
||||||
label={t("labels.copyAsSvg")}
|
|
||||||
shortcuts={[getShortcutKey("Shift+Ctrl+C")]}
|
|
||||||
/>
|
|
||||||
<Shortcut
|
<Shortcut
|
||||||
label={t("labels.copyStyles")}
|
label={t("labels.copyStyles")}
|
||||||
shortcuts={[getShortcutKey("CtrlOrCmd+Alt+C")]}
|
shortcuts={[getShortcutKey("CtrlOrCmd+Alt+C")]}
|
||||||
|
@ -206,7 +206,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>,
|
</svg>,
|
||||||
"keyTest": [Function],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svg",
|
"svg",
|
||||||
"clipboard",
|
"clipboard",
|
||||||
@ -4724,7 +4723,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>,
|
</svg>,
|
||||||
"keyTest": [Function],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svg",
|
"svg",
|
||||||
"clipboard",
|
"clipboard",
|
||||||
@ -5852,7 +5850,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>,
|
</svg>,
|
||||||
"keyTest": [Function],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svg",
|
"svg",
|
||||||
"clipboard",
|
"clipboard",
|
||||||
@ -6932,7 +6929,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>,
|
</svg>,
|
||||||
"keyTest": [Function],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svg",
|
"svg",
|
||||||
"clipboard",
|
"clipboard",
|
||||||
@ -7701,7 +7697,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>,
|
</svg>,
|
||||||
"keyTest": [Function],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svg",
|
"svg",
|
||||||
"clipboard",
|
"clipboard",
|
||||||
@ -8596,7 +8591,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||||||
/>
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>,
|
</svg>,
|
||||||
"keyTest": [Function],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"svg",
|
"svg",
|
||||||
"clipboard",
|
"clipboard",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user