|
|
|
@ -22,21 +22,6 @@ export class CommandInput extends React.Component<Props, IState>
|
|
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// componentDidMount(): void
|
|
|
|
|
// {
|
|
|
|
|
// document.addEventListener("keydown", (e: KeyboardEvent) =>
|
|
|
|
|
// {
|
|
|
|
|
// this.setState({ showCommandTypeModal: false });
|
|
|
|
|
// });
|
|
|
|
|
// document.addEventListener("click", (e: React.MouseEvent<HTMLInputElement, MouseEvent>) =>
|
|
|
|
|
// {
|
|
|
|
|
// console.log("e.target", e.target);
|
|
|
|
|
// if (e.target.className.include("command-setting-wrench"))
|
|
|
|
|
// {
|
|
|
|
|
// this.setState({ showCommandTypeModal: false });
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
render()
|
|
|
|
|
{
|
|
|
|
|
const store = CommandStore.GetInstance();
|
|
|
|
|