|
|
|
@ -130,7 +130,9 @@ export default class InputHint extends React.Component<{ commandStore?: CommandS
|
|
|
|
|
//绑定键盘命令
|
|
|
|
|
public handleSelectCommand = (e: KeyboardEvent) =>
|
|
|
|
|
{
|
|
|
|
|
// (this.props.commandStore.elInput as HTMLInputElement).focus();
|
|
|
|
|
// if (document.activeElement.nodeName !== 'INPUT')
|
|
|
|
|
// (this.props.commandStore.elInput as HTMLInputElement).focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let m_li: HTMLCollection = this.m_recommendUl.children;;
|
|
|
|
|
let historyCommands = this.state.historyCommands;
|
|
|
|
@ -459,10 +461,9 @@ export default class InputHint extends React.Component<{ commandStore?: CommandS
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="请输入命令"
|
|
|
|
|
ref={o => { this.props.commandStore.elInput = o; }}
|
|
|
|
|
// onKeyPress={this.handleConfirmInput}
|
|
|
|
|
onKeyDown={e => { e.preventDefault() }}
|
|
|
|
|
// onKeyDown={e => { e.preventDefault() }}
|
|
|
|
|
onChange={this.handleOnChange}
|
|
|
|
|
// value={this.state.command}
|
|
|
|
|
value={this.state.command}
|
|
|
|
|
/>
|
|
|
|
|
<ul
|
|
|
|
|
className="history-command"
|
|
|
|
|