浏览代码

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

Co-authored-by: dwelle <[email protected]>
Gabriel Lalonde 1 年之前
父节点
当前提交
68179356e6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/actions/actionCanvas.tsx

+ 2 - 1
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,
 });