From 426b14d8a9dfbec152dde6f75c5ec3b0a903af92 Mon Sep 17 00:00:00 2001
From: David Lu <david.lu@hotmail.com>
Date: Mon, 25 Jul 2016 10:16:07 -0400
Subject: fixed mobile enter button (#3639)

---
 webapp/components/create_post.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/create_post.jsx')

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();
-- 
cgit v1.2.3-1-g7c22

