This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix
#167
- Enable cmd+enter on Mac to submit form
master
Eugen Rochko
8 years ago
parent
cda297450f
commit
73c142fb94
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/assets/javascripts/components/features/compose/components/compose_form.jsx
+ 1
- 1
app/assets/javascripts/components/features/compose/components/compose_form.jsx
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
(
)
;
}
}
}
,
}
,
Write
Preview
Loading…
Cancel
Save