1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-28 23:09:12 +09:00

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

This commit is contained in:
Eugen Rochko 2016-12-11 23:39:25 +01:00
parent cda297450f
commit 73c142fb94

View File

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