Skip to content

Commit

Permalink
#1984: Hot key: If a 'Hand tool' is selected, then when you press any…
Browse files Browse the repository at this point in the history
… hot key (e.g. 'C','S','O','N') Ketcher crashes (#2013)
  • Loading branch information
KonstantinEpam23 committed Dec 28, 2022
1 parent a3e86ed commit 787778e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ class StructEditor extends Component {
...props
} = this.props

const { clientX = 0, clientY = 0 } = this.state

return (
<Tag
className={clsx(classes.canvas, className)}
Expand Down Expand Up @@ -232,7 +234,13 @@ class StructEditor extends Component {
</div>
)}
</ContextMenuTrigger>
<InfoPanel {...this.state} {...this.props} />
<InfoPanel
clientX={clientX}
clientY={clientY}
render={this.props.render}
groupStruct={this.props.groupStruct}
sGroup={this.props.sGroup}
/>
<FGContextMenu />
</Tag>
)
Expand Down

0 comments on commit 787778e

Please sign in to comment.