summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion/command_provider.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-12-02 09:31:12 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-12-02 09:31:12 -0500
commit101c74d8b82efb43ade6d67f669d586efc9b943c (patch)
treeb80ff306a62b9ae31e53d2d609f5dc5b3efab779 /web/react/components/suggestion/command_provider.jsx
parent07f0df6af428a56a4abedde841a0813e2802cd2b (diff)
downloadchat-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.jsx1
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);
}