diff --git a/pkg/interface/publish/src/js/components/lib/comments.js b/pkg/interface/publish/src/js/components/lib/comments.js index c6e20921cd..14583f6588 100644 --- a/pkg/interface/publish/src/js/components/lib/comments.js +++ b/pkg/interface/publish/src/js/components/lib/comments.js @@ -116,7 +116,13 @@ export class Comments extends Component { "b--gray2-d mb2 focus-b--black focus-b--white-d white-d bg-gray0-d"} aria-describedby="comment-desc" style={{height: "4rem"}} - onChange={this.commentChange}> + onChange={this.commentChange} + onKeyPress={(e) => { + if ((e.getModifierState("Control") || event.getModifierState("Meta")) + && e.key === "Enter") { + this.commentSubmit(); + } + }}>