diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-09 09:14:46 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-09 09:14:46 -0500 |
commit | c7e84696f568cf87dd1bbde795773a1dda203183 (patch) | |
tree | 819bf329e8a167d610dfaddb20ba0a843e277660 /web/react/stores/suggestion_store.jsx | |
parent | f006951959acad76c8626d85fac3521d302bb0ee (diff) | |
download | chat-c7e84696f568cf87dd1bbde795773a1dda203183.tar.gz chat-c7e84696f568cf87dd1bbde795773a1dda203183.tar.bz2 chat-c7e84696f568cf87dd1bbde795773a1dda203183.zip |
Removed space bar from autocompletes
Diffstat (limited to 'web/react/stores/suggestion_store.jsx')
-rw-r--r-- | web/react/stores/suggestion_store.jsx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/web/react/stores/suggestion_store.jsx b/web/react/stores/suggestion_store.jsx index 2250ec234..9cd566c22 100644 --- a/web/react/stores/suggestion_store.jsx +++ b/web/react/stores/suggestion_store.jsx @@ -38,7 +38,6 @@ class SuggestionStore extends EventEmitter { // items: a list of objects backing the terms which may be used in rendering // components: a list of react components that can be used to render their corresponding item // selection: the term currently selected by the keyboard - // completeOnSpace: whether or not space will trigger the term to be autocompleted this.suggestions = new Map(); } @@ -79,8 +78,7 @@ class SuggestionStore extends EventEmitter { terms: [], items: [], components: [], - selection: '', - completeOnSpace: true + selection: '' }); } @@ -95,7 +93,6 @@ class SuggestionStore extends EventEmitter { suggestion.terms = []; suggestion.items = []; suggestion.components = []; - suggestion.completeOnSpace = true; } clearSelection(id) { @@ -120,12 +117,6 @@ class SuggestionStore extends EventEmitter { suggestion.matchedPretext = matchedPretext; } - setCompleteOnSpace(id, completeOnSpace) { - const suggestion = this.suggestions.get(id); - - suggestion.completeOnSpace = completeOnSpace; - } - addSuggestion(id, term, item, component) { const suggestion = this.suggestions.get(id); @@ -189,10 +180,6 @@ class SuggestionStore extends EventEmitter { return this.suggestions.get(id).selection; } - shouldCompleteOnSpace(id) { - return this.suggestions.get(id).completeOnSpace; - } - selectNext(id) { this.setSelectionByDelta(id, 1); } |