Fix #167 - Enable cmd+enter on Mac to submit form

th-downstream
Eugen Rochko 8 years ago
parent 5c306a0260
commit 534240240d

@ -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();
}
},

Loading…
Cancel
Save