From 489fc0d64c72ef372d0cf388428ec494834e0779 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Fri, 12 Apr 2024 18:55:25 -0300 Subject: [PATCH] Refactor: Use mod key instead of ctrl key to enable shortcuts to mac users --- .../components/nodeToolbarComponent/index.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index f1f52b050..8dcd851e7 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -142,15 +142,15 @@ export default function NodeToolbarComponent({ downloadNode(flowComponent!); } - useHotkeys("ctrl+q", handleMinimizeWShortcut); - useHotkeys("ctrl+u", handleUpdateWShortcut); - useHotkeys("ctrl+g", handleGroupWShortcut); - useHotkeys("ctrl+shift+s", handleShareWShortcut); - useHotkeys("ctrl+shift+u", handleCodeWShortcut); - useHotkeys("ctrl+shift+a", handleAdvancedWShortcut); - useHotkeys("ctrl+s", handleSaveWShortcut); - useHotkeys("ctrl+shift+d", handleDocsWShortcut); - useHotkeys("ctrl+j", handleDownloadWShortcut); + useHotkeys("mod+q", handleMinimizeWShortcut); + useHotkeys("mod+u", handleUpdateWShortcut); + useHotkeys("mod+g", handleGroupWShortcut); + useHotkeys("mod+shift+s", handleShareWShortcut); + useHotkeys("mod+shift+u", handleCodeWShortcut); + useHotkeys("mod+shift+a", handleAdvancedWShortcut); + useHotkeys("mod+s", handleSaveWShortcut); + useHotkeys("mod+shift+d", handleDocsWShortcut); + useHotkeys("mod+j", handleDownloadWShortcut); const isMinimal = numberOfHandles <= 1; const isGroup = data.node?.flow ? true : false;