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