From 5ec770ad5e4d83dd223af24fc795ab44223733bb Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 11 Jun 2025 11:26:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevent=20stuck=20drag=20state?= =?UTF-8?q?=20when=20opening=20native=20emoji=20picker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/builder/src/features/graph/components/Graph.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/builder/src/features/graph/components/Graph.tsx b/apps/builder/src/features/graph/components/Graph.tsx index fc98be3ee..c742d8846 100644 --- a/apps/builder/src/features/graph/components/Graph.tsx +++ b/apps/builder/src/features/graph/components/Graph.tsx @@ -339,7 +339,8 @@ export const Graph = ({ }; useEventListener("keydown", (e) => { - if (e.key === " ") setIsDraggingGraph(true); + if (e.key === " " && !e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey) + setIsDraggingGraph(true); }); useEventListener("keyup", (e) => { if (e.key === " ") {