diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-02 09:31:12 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-02 09:31:12 -0500 |
commit | 101c74d8b82efb43ade6d67f669d586efc9b943c (patch) | |
tree | b80ff306a62b9ae31e53d2d609f5dc5b3efab779 /web/react/components/suggestion/command_provider.jsx | |
parent | 07f0df6af428a56a4abedde841a0813e2802cd2b (diff) | |
download | chat-101c74d8b82efb43ade6d67f669d586efc9b943c.tar.gz chat-101c74d8b82efb43ade6d67f669d586efc9b943c.tar.bz2 chat-101c74d8b82efb43ade6d67f669d586efc9b943c.zip |
Changed Command autocomplete to pick a suggestion when space is pressed
Diffstat (limited to 'web/react/components/suggestion/command_provider.jsx')
-rw-r--r-- | web/react/components/suggestion/command_provider.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/suggestion/command_provider.jsx b/web/react/components/suggestion/command_provider.jsx index a1f7901ef..6a7c1ce43 100644 --- a/web/react/components/suggestion/command_provider.jsx +++ b/web/react/components/suggestion/command_provider.jsx @@ -40,6 +40,7 @@ export default class CommandProvider { handlePretextChanged(suggestionId, pretext) { if (pretext.startsWith('/')) { SuggestionStore.setMatchedPretext(suggestionId, pretext); + SuggestionStore.setCompleteOnSpace(suggestionId, false); AsyncClient.getSuggestedCommands(pretext, suggestionId, CommandSuggestion); } |