Browse Source

fix: Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" (#7189)

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
pull/7269/head
Gabriel Lalonde 2 years ago committed by GitHub
parent
commit
68179356e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/actions/actionCanvas.tsx

3
src/actions/actionCanvas.tsx

@ -438,5 +438,6 @@ export const actionToggleHandTool = register({ @@ -438,5 +438,6 @@ export const actionToggleHandTool = register({
commitToHistory: true,
};
},
keyTest: (event) => event.key === KEYS.H,
keyTest: (event) =>
!event.altKey && !event[KEYS.CTRL_OR_CMD] && event.key === KEYS.H,
});

Loading…
Cancel
Save