From 73c142fb94213cb0316caba10e4b5e3ffa4e573f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 11 Dec 2016 23:39:25 +0100 Subject: [PATCH] Fix #167 - Enable cmd+enter on Mac to submit form --- .../components/features/compose/components/compose_form.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/features/compose/components/compose_form.jsx b/app/assets/javascripts/components/features/compose/components/compose_form.jsx index 12efdf6176a..962f8feedac 100644 --- a/app/assets/javascripts/components/features/compose/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/compose_form.jsx @@ -95,7 +95,7 @@ const ComposeForm = React.createClass({ }, handleKeyUp (e) { - if (e.keyCode === 13 && e.ctrlKey) { + if (e.keyCode === 13 && (e.ctrlKey || (e.metaKey && e.metaKey === '⌘-'))) { this.props.onSubmit(); } },