Skip to content

Commit

Permalink
#1826: do not select a hotkey tool if we are hovering over an atom / …
Browse files Browse the repository at this point in the history
…let -> const
  • Loading branch information
KonstantinEpam committed Nov 30, 2022
1 parent eb97c36 commit ada362a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ketcher-react/src/script/ui/state/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function keyHandle(dispatch, state, hotKeys, event) {
}

function getHoveredAtomId(atoms) {
for (let [id, atom] of atoms.entries()) {
for (const [id, atom] of atoms.entries()) {
if (atom.hover) return id
}
return null
Expand Down

0 comments on commit ada362a

Please sign in to comment.