|
|
|
@ -27,6 +27,7 @@ export class CommandStore
|
|
|
|
|
|
|
|
|
|
//设置输入框为焦点
|
|
|
|
|
isInputFocus: boolean;
|
|
|
|
|
hoverLi: Element;
|
|
|
|
|
elInput: HTMLInputElement;
|
|
|
|
|
outputContainer: HTMLElement;
|
|
|
|
|
commandListContainer: HTMLElement;
|
|
|
|
@ -103,6 +104,11 @@ export class CommandStore
|
|
|
|
|
commandMachine.ExecCommand(inpValue);
|
|
|
|
|
this.Prompt(inpValue);
|
|
|
|
|
this.searchCommand.length = 0;
|
|
|
|
|
} else if (this.hoverLi)
|
|
|
|
|
{
|
|
|
|
|
commandMachine.ExecCommand(this.hoverLi.innerHTML);
|
|
|
|
|
this.Prompt(this.hoverLi.innerHTML);
|
|
|
|
|
this.searchCommand.length = 0;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|