[PyCharm] PY-78574 Jupyter updateSelectionAfterClick fix: change cell selection only if clicked cell != already selected

GitOrigin-RevId: b73215184a8c31feb4631227f761f9ab88c247d3
This commit is contained in:
Bogdan Kirilenko
2025-01-23 13:21:56 +00:00
committed by intellij-monorepo-bot
parent 5bc798d606
commit 2d8b0ca142
@@ -302,11 +302,7 @@ class DecoratedEditor private constructor(
}
}
}
else -> {
if (mouseButton == MouseEvent.BUTTON1 || !model.isSelectedCell(clickedCell)) {
model.selectSingleCell(clickedCell)
}
}
mouseButton == MouseEvent.BUTTON1 && !model.isSelectedCell(clickedCell) -> model.selectSingleCell(clickedCell)
}
}