diff --git a/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx b/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx index ae21df17c..84951d3b2 100644 --- a/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx @@ -1,7 +1,7 @@ -import { Button } from 'twenty-ui'; +import { RightDrawerHotkeyScope } from '@/ui/layout/right-drawer/types/RightDrawerHotkeyScope'; import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys'; import { Key } from 'ts-key-enum'; -import { RightDrawerHotkeyScope } from '@/ui/layout/right-drawer/types/RightDrawerHotkeyScope'; +import { Button, getOsControlSymbol } from 'twenty-ui'; export const CmdEnterActionButton = ({ title, @@ -24,7 +24,7 @@ export const CmdEnterActionButton = ({ accent="blue" size="medium" onClick={onClick} - shortcut={'⌘⏎'} + hotkeys={[getOsControlSymbol(), '⏎']} /> ); }; diff --git a/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuBarAllActionsButton.tsx b/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuBarAllActionsButton.tsx index 336b4f734..9805b6375 100644 --- a/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuBarAllActionsButton.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenuBarAllActionsButton.tsx @@ -1,7 +1,7 @@ import { useCommandMenu } from '@/command-menu/hooks/useCommandMenu'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; -import { IconLayoutSidebarRightExpand } from 'twenty-ui'; +import { IconLayoutSidebarRightExpand, getOsControlSymbol } from 'twenty-ui'; const StyledButton = styled.div` border-radius: ${({ theme }) => theme.border.radius.sm}; @@ -46,7 +46,7 @@ export const RecordIndexActionMenuBarAllActionsButton = () => { All Actions - ⌘K + {getOsControlSymbol()}K ); diff --git a/packages/twenty-front/src/modules/action-menu/components/RightDrawerActionMenuDropdown.tsx b/packages/twenty-front/src/modules/action-menu/components/RightDrawerActionMenuDropdown.tsx index a35f7dbef..f054b12a5 100644 --- a/packages/twenty-front/src/modules/action-menu/components/RightDrawerActionMenuDropdown.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/RightDrawerActionMenuDropdown.tsx @@ -14,7 +14,7 @@ import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { useTheme } from '@emotion/react'; import { Key } from 'ts-key-enum'; -import { Button, MenuItem } from 'twenty-ui'; +import { Button, MenuItem, getOsControlSymbol } from 'twenty-ui'; import { FeatureFlagKey } from '~/generated/graphql'; export const RightDrawerActionMenuDropdown = () => { @@ -68,7 +68,9 @@ export const RightDrawerActionMenuDropdown = () => { RightDrawerActionMenuDropdownHotkeyScope.RightDrawerActionMenuDropdown, }} data-select-disable - clickableComponent={