@ -97,10 +97,13 @@ export default class ConsoleComponent {
}
onInput(e) {
let state = this.store.getState();
let text = e.target.value;
this.store.dispatch(consoleActions.setConsoleText(text));
if (state.mode === 'command') {
this.store.dispatch(consoleActions.getCompletions(text));
onInputShown(state) {
let doc = this.wrapper.ownerDocument;