diff --git a/src/actions/actionStyles.ts b/src/actions/actionStyles.ts index 2e1e72ee..2cd6936c 100644 --- a/src/actions/actionStyles.ts +++ b/src/actions/actionStyles.ts @@ -27,7 +27,9 @@ export const actionCopyStyles = register({ }, contextItemLabel: "labels.copyStyles", keyTest: (event) => - event[KEYS.CTRL_OR_CMD] && event.shiftKey && event.key === "C", + event[KEYS.CTRL_OR_CMD] && + event.altKey && + event.keyCode === KEYS.C_KEY_CODE, contextMenuOrder: 0, }); @@ -67,6 +69,8 @@ export const actionPasteStyles = register({ }, contextItemLabel: "labels.pasteStyles", keyTest: (event) => - event[KEYS.CTRL_OR_CMD] && event.shiftKey && event.key === "V", + event[KEYS.CTRL_OR_CMD] && + event.altKey && + event.keyCode === KEYS.V_KEY_CODE, contextMenuOrder: 1, }); diff --git a/src/components/ShortcutsDialog.tsx b/src/components/ShortcutsDialog.tsx index 4f12ce79..2f90eddc 100644 --- a/src/components/ShortcutsDialog.tsx +++ b/src/components/ShortcutsDialog.tsx @@ -287,11 +287,11 @@ export const ShortcutsDialog = ({ onClose }: { onClose?: () => void }) => { />