diff --git a/apps/client/src/features/comment/components/comment-actions.tsx b/apps/client/src/features/comment/components/comment-actions.tsx index 4b545f54..882c6f74 100644 --- a/apps/client/src/features/comment/components/comment-actions.tsx +++ b/apps/client/src/features/comment/components/comment-actions.tsx @@ -24,11 +24,9 @@ function CommentActions({ )} - - - + ); } diff --git a/apps/client/src/features/comment/components/comment-editor.tsx b/apps/client/src/features/comment/components/comment-editor.tsx index 7b003338..f5751a19 100644 --- a/apps/client/src/features/comment/components/comment-editor.tsx +++ b/apps/client/src/features/comment/components/comment-editor.tsx @@ -29,7 +29,7 @@ const CommentEditor = forwardRef( placeholder, autofocus, }: CommentEditorProps, - ref + ref, ) => { const { t } = useTranslation(); const { ref: focusRef, focused } = useFocusWithin(); @@ -65,7 +65,7 @@ const CommentEditor = forwardRef( } } - if (event.ctrlKey && event.key === 'Enter') { + if ((event.ctrlKey || event.metaKey) && event.key === "Enter") { event.preventDefault(); if (onSave) onSave(); @@ -106,7 +106,7 @@ const CommentEditor = forwardRef( /> ); - } + }, ); export default CommentEditor;