diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-04-24 13:10:34 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-04-24 13:10:34 -0400 |
commit | 7f68a60f8c228d5604e0566bf84cabb145d16c37 (patch) | |
tree | 65f1c89e4c57c5d46108b93c257398c76d732c88 /webapp/components/suggestion | |
parent | 134f78e630589531df212d3cb2bb748aa9bf68f4 (diff) | |
download | chat-7f68a60f8c228d5604e0566bf84cabb145d16c37.tar.gz chat-7f68a60f8c228d5604e0566bf84cabb145d16c37.tar.bz2 chat-7f68a60f8c228d5604e0566bf84cabb145d16c37.zip |
Fixing double enter in channel switcher (#6208)
Diffstat (limited to 'webapp/components/suggestion')
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index 6126a16a0..2c358b693 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -172,6 +172,7 @@ export default class SuggestionBox extends React.Component { e.preventDefault(); } else if (e.which === KeyCodes.ENTER || e.which === KeyCodes.TAB) { GlobalActions.emitCompleteWordSuggestion(this.suggestionId); + this.props.onKeyDown(e); e.preventDefault(); } else if (e.which === KeyCodes.ESCAPE) { GlobalActions.emitClearSuggestions(this.suggestionId); |