From cc4d23e27669ce85285b514a0606b4ea8c27d6e7 Mon Sep 17 00:00:00 2001
From: David Lu <david.lu@hotmail.com>
Date: Sat, 4 Jun 2016 23:23:07 -0700
Subject: added ctrlSend checking (#3196)

---
 webapp/components/edit_post_modal.jsx | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/webapp/components/edit_post_modal.jsx b/webapp/components/edit_post_modal.jsx
index 92b16f925..ac82cf036 100644
--- a/webapp/components/edit_post_modal.jsx
+++ b/webapp/components/edit_post_modal.jsx
@@ -82,6 +82,10 @@ class EditPostModal extends React.Component {
             e.preventDefault();
             ReactDOM.findDOMNode(this.refs.editbox).blur();
             this.handleEdit(e);
+        } else if (this.state.ctrlSend && e.ctrlKey && e.which === KeyCodes.ENTER) {
+            e.preventDefault();
+            ReactDOM.findDOMNode(this.refs.editbox).blur();
+            this.handleSubmit(e);
         }
     }
     handleEditPostEvent(options) {
-- 
cgit v1.2.3-1-g7c22

