From 7459379e92cc6a267d3fb6e2a6af74a0a821726b Mon Sep 17 00:00:00 2001 From: HarelM Date: Wed, 17 Sep 2025 10:24:03 +0300 Subject: [PATCH] Fix cursor appearance, remove dead code --- src/components/InputJson.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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