Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backmerge: #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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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