diff options
author | David Lu <david.lu@hotmail.com> | 2016-06-04 23:23:07 -0700 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-06-05 03:23:07 -0300 |
commit | cc4d23e27669ce85285b514a0606b4ea8c27d6e7 (patch) | |
tree | af28627ab19dfcb1044f4d8e486459d9d94b6f0a /webapp/components/edit_post_modal.jsx | |
parent | cb868eb42bdd6a5a30fe111faa48875a4c13f09c (diff) | |
download | chat-cc4d23e27669ce85285b514a0606b4ea8c27d6e7.tar.gz chat-cc4d23e27669ce85285b514a0606b4ea8c27d6e7.tar.bz2 chat-cc4d23e27669ce85285b514a0606b4ea8c27d6e7.zip |
added ctrlSend checking (#3196)
Diffstat (limited to 'webapp/components/edit_post_modal.jsx')
-rw-r--r-- | webapp/components/edit_post_modal.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |