From 787778eb45bec5e8f83253521d9af7990818c9d1 Mon Sep 17 00:00:00 2001 From: KonstantinEpam23 <101649391+KonstantinEpam23@users.noreply.github.com> Date: Wed, 28 Dec 2022 12:01:30 +0100 Subject: [PATCH] #1984: Hot key: If a 'Hand tool' is selected, then when you press any hot key (e.g. 'C','S','O','N') Ketcher crashes (#2013) --- .../ui/views/components/StructEditor/StructEditor.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/ketcher-react/src/script/ui/views/components/StructEditor/StructEditor.jsx b/packages/ketcher-react/src/script/ui/views/components/StructEditor/StructEditor.jsx index 9d5cdbead4..79a09b9e39 100644 --- a/packages/ketcher-react/src/script/ui/views/components/StructEditor/StructEditor.jsx +++ b/packages/ketcher-react/src/script/ui/views/components/StructEditor/StructEditor.jsx @@ -200,6 +200,8 @@ class StructEditor extends Component { ...props } = this.props + const { clientX = 0, clientY = 0 } = this.state + return ( )} - + )