From bbe03b25fe751a1fcdafc1b852454ffca35a2ffa Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Sat, 13 Jul 2024 14:52:45 +0200 Subject: [PATCH] Close multi-cell selection more eagerly --- frontend/components/SelectionArea.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/components/SelectionArea.js b/frontend/components/SelectionArea.js index eb705ad324..96d9456d86 100644 --- a/frontend/components/SelectionArea.js +++ b/frontend/components/SelectionArea.js @@ -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