diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-11 23:39:25 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-11 23:39:25 +0100 |
commit | 73c142fb94213cb0316caba10e4b5e3ffa4e573f (patch) | |
tree | af059543ffe272b1492f74a102524a9118458d11 | |
parent | cda297450f023c36dc7135c4b02693a1b3525ccd (diff) |
Fix #167 - Enable cmd+enter on Mac to submit form
-rw-r--r-- | app/assets/javascripts/components/features/compose/components/compose_form.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
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 12efdf617..962f8feed 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(); } }, |