about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-11 23:39:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-11 23:39:25 +0100
commit73c142fb94213cb0316caba10e4b5e3ffa4e573f (patch)
treeaf059543ffe272b1492f74a102524a9118458d11 /app/assets
parentcda297450f023c36dc7135c4b02693a1b3525ccd (diff)
Fix #167 - Enable cmd+enter on Mac to submit form
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/features/compose/components/compose_form.jsx2
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();
     }
   },