diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-09 09:41:23 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-09 09:41:23 -0500 |
commit | b612c61ac164dd6a92896bc0892b6566edc298ce (patch) | |
tree | 6ac727dcb8b741423b5f0d1449ea46f6963856fc /web/react/components | |
parent | 3daa830ab1054d18d730b21ea89977a2d7a467c8 (diff) | |
parent | c7e84696f568cf87dd1bbde795773a1dda203183 (diff) | |
download | chat-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')
-rw-r--r-- | web/react/components/suggestion/command_provider.jsx | 1 | ||||
-rw-r--r-- | web/react/components/suggestion/suggestion_box.jsx | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/web/react/components/suggestion/command_provider.jsx b/web/react/components/suggestion/command_provider.jsx index a2a446de2..91d556bb9 100644 --- a/web/react/components/suggestion/command_provider.jsx +++ b/web/react/components/suggestion/command_provider.jsx @@ -39,7 +39,6 @@ export default class CommandProvider { handlePretextChanged(suggestionId, pretext) { if (pretext.startsWith('/')) { SuggestionStore.setMatchedPretext(suggestionId, pretext); - SuggestionStore.setCompleteOnSpace(suggestionId, false); AsyncClient.getSuggestedCommands(pretext, suggestionId, CommandSuggestion); } 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) { |