diff --git a/src/components/InputJson.tsx b/src/components/InputJson.tsx index 7d954997..a99dfe79 100644 --- a/src/components/InputJson.tsx +++ b/src/components/InputJson.tsx @@ -30,14 +30,12 @@ class InputJsonInternal extends React.Component {}, onBlur: () => {}, }; - _keyEvent: string; _view: EditorView | undefined; _el: HTMLDivElement | null = null; _cancelNextChange: boolean = false; constructor(props: InputJsonInternalProps) { super(props); - this._keyEvent = "keyboard"; this.state = { isEditing: false, prevValue: this.getPrettyJson(this.props.value), @@ -60,10 +58,6 @@ class InputJsonInternal extends React.Component { - this._keyEvent = "pointer"; - }; - onFocus = () => { if (this.props.onFocus) this.props.onFocus(); this.setState({ @@ -72,7 +66,6 @@ class InputJsonInternal extends React.Component { - this._keyEvent = "keyboard"; if (this.props.onBlur) this.props.onBlur(); this.setState({ isEditing: false, @@ -127,7 +120,7 @@ class InputJsonInternal extends React.Component