diff --git a/src/actions/actionDistribute.tsx b/src/actions/actionDistribute.tsx index 578a4a57..5b61e44d 100644 --- a/src/actions/actionDistribute.tsx +++ b/src/actions/actionDistribute.tsx @@ -7,7 +7,7 @@ import { distributeElements, Distribution } from "../disitrubte"; import { getNonDeletedElements } from "../element"; import { ExcalidrawElement } from "../element/types"; import { t } from "../i18n"; -import { CODES } from "../keys"; +import { CODES, KEYS } from "../keys"; import { getSelectedElements, isSomeElementSelected } from "../scene"; import { AppState } from "../types"; import { arrayToMap, getShortcutKey } from "../utils"; @@ -49,7 +49,8 @@ export const distributeHorizontally = register({ commitToHistory: true, }; }, - keyTest: (event) => event.altKey && event.code === CODES.H, + keyTest: (event) => + !event[KEYS.CTRL_OR_CMD] && event.altKey && event.code === CODES.H, PanelComponent: ({ elements, appState, updateData }) => (