From 68179356e685e5750b1353ceec5c8adabec46237 Mon Sep 17 00:00:00 2001 From: Gabriel Lalonde Date: Fri, 10 Nov 2023 09:33:02 -0500 Subject: [PATCH] fix: Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" (#7189) Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com> --- src/actions/actionCanvas.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actions/actionCanvas.tsx b/src/actions/actionCanvas.tsx index 2ba584bc1d..2194f63b12 100644 --- a/src/actions/actionCanvas.tsx +++ b/src/actions/actionCanvas.tsx @@ -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, });