aboutsummaryrefslogtreecommitdiff
path: root/src/console/components/console.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/components/console.js')
-rw-r--r--src/console/components/console.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index bd3e344..4fc8a53 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -97,9 +97,12 @@ export default class ConsoleComponent {
}
onInput(e) {
+ let state = this.store.getState();
let text = e.target.value;
this.store.dispatch(consoleActions.setConsoleText(text));
- this.store.dispatch(consoleActions.getCompletions(text));
+ if (state.mode === 'command') {
+ this.store.dispatch(consoleActions.getCompletions(text));
+ }
}
onInputShown(state) {