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

lolsob-rspec
Eugen Rochko 2016-12-11 23:39:25 +01:00
parent 5c306a0260
commit 534240240d
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ const ComposeForm = React.createClass({
}, },
handleKeyUp (e) { handleKeyUp (e) {
if (e.keyCode === 13 && e.ctrlKey) { if (e.keyCode === 13 && (e.ctrlKey || (e.metaKey && e.metaKey === '⌘-'))) {
this.props.onSubmit(); this.props.onSubmit();
} }
}, },