Переглянути джерело

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,
       commitToHistory: true,
     };
     };
   },
   },
-  keyTest: (event) => event.key === KEYS.H,
+  keyTest: (event) =>
+    !event.altKey && !event[KEYS.CTRL_OR_CMD] && event.key === KEYS.H,
 });
 });