summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion/suggestion_box.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-09 09:41:23 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-09 09:41:23 -0500
commitb612c61ac164dd6a92896bc0892b6566edc298ce (patch)
tree6ac727dcb8b741423b5f0d1449ea46f6963856fc /web/react/components/suggestion/suggestion_box.jsx
parent3daa830ab1054d18d730b21ea89977a2d7a467c8 (diff)
parentc7e84696f568cf87dd1bbde795773a1dda203183 (diff)
downloadchat-b612c61ac164dd6a92896bc0892b6566edc298ce.tar.gz
chat-b612c61ac164dd6a92896bc0892b6566edc298ce.tar.bz2
chat-b612c61ac164dd6a92896bc0892b6566edc298ce.zip
Merge pull request #1671 from hmhealey/plt1430
PLT-1430 Removed space bar from autocompletes
Diffstat (limited to 'web/react/components/suggestion/suggestion_box.jsx')
-rw-r--r--web/react/components/suggestion/suggestion_box.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/suggestion/suggestion_box.jsx b/web/react/components/suggestion/suggestion_box.jsx
index ad8ad1e9e..57a33c24a 100644
--- a/web/react/components/suggestion/suggestion_box.jsx
+++ b/web/react/components/suggestion/suggestion_box.jsx
@@ -94,7 +94,7 @@ export default class SuggestionBox extends React.Component {
} else if (e.which === KeyCodes.DOWN) {
EventHelpers.emitSelectNextSuggestion(this.suggestionId);
e.preventDefault();
- } else if (e.which === KeyCodes.ENTER || e.which === KeyCodes.TAB || (e.which === KeyCodes.SPACE && SuggestionStore.shouldCompleteOnSpace(this.suggestionId))) {
+ } else if (e.which === KeyCodes.ENTER || e.which === KeyCodes.TAB) {
EventHelpers.emitCompleteWordSuggestion(this.suggestionId);
e.preventDefault();
} else if (this.props.onKeyDown) {