diff options
author | David Lu <david.lu@hotmail.com> | 2016-07-25 10:16:07 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-07-25 10:16:07 -0400 |
commit | 426b14d8a9dfbec152dde6f75c5ec3b0a903af92 (patch) | |
tree | 47882d5bc37a57daf473910c7a608afffff9aeb2 /webapp | |
parent | 6e44d6b8593196d665d5043eb52c3cb359c6dce2 (diff) | |
download | chat-426b14d8a9dfbec152dde6f75c5ec3b0a903af92.tar.gz chat-426b14d8a9dfbec152dde6f75c5ec3b0a903af92.tar.bz2 chat-426b14d8a9dfbec152dde6f75c5ec3b0a903af92.zip |
fixed mobile enter button (#3639)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/create_comment.jsx | 2 | ||||
-rw-r--r-- | webapp/components/create_post.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx index d6744e9fb..2b4800bf4 100644 --- a/webapp/components/create_comment.jsx +++ b/webapp/components/create_comment.jsx @@ -168,7 +168,7 @@ export default class CreateComment extends React.Component { } commentMsgKeyPress(e) { - if ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend) { + if (!Utils.isMobile() && ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend)) { if (e.which === KeyCodes.ENTER && !e.shiftKey && !e.altKey) { e.preventDefault(); ReactDOM.findDOMNode(this.refs.textbox).blur(); diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index c0da9ae1d..0c2b8d644 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -196,7 +196,7 @@ export default class CreatePost extends React.Component { } postMsgKeyPress(e) { - if ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend) { + if (!Utils.isMobile() && ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend)) { if (e.which === KeyCodes.ENTER && !e.shiftKey && !e.altKey) { e.preventDefault(); ReactDOM.findDOMNode(this.refs.textbox).blur(); |