summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_post.jsx
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-07-25 10:16:07 -0400
committerChristopher Speller <crspeller@gmail.com>2016-07-25 10:16:07 -0400
commit426b14d8a9dfbec152dde6f75c5ec3b0a903af92 (patch)
tree47882d5bc37a57daf473910c7a608afffff9aeb2 /webapp/components/create_post.jsx
parent6e44d6b8593196d665d5043eb52c3cb359c6dce2 (diff)
downloadchat-426b14d8a9dfbec152dde6f75c5ec3b0a903af92.tar.gz
chat-426b14d8a9dfbec152dde6f75c5ec3b0a903af92.tar.bz2
chat-426b14d8a9dfbec152dde6f75c5ec3b0a903af92.zip
fixed mobile enter button (#3639)
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r--webapp/components/create_post.jsx2
1 files changed, 1 insertions, 1 deletions
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();