Skip to content

Commit

Permalink
Close multi-cell selection more eagerly
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Jul 13, 2024
1 parent cb850c8 commit bbe03b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/components/SelectionArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export const SelectionArea = ({ on_selection, set_scroller, cell_order }) => {
!e.composedPath().some((e) => {
// @ts-ignore
const tag = e.tagName
return tag === "PLUTO-SHOULDER" || tag === "BUTTON"
if (e instanceof HTMLElement)
return e.matches("pluto-shoulder, button.input_context_menu, button.foldcode") || e.closest(".input_context_menu")
})
) {
// ...clear the selection
Expand Down

0 comments on commit bbe03b2

Please sign in to comment.