Show completions only command
This commit is contained in:
parent
5ecada5b23
commit
7acbdbfef2
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue