From 5f168486e815840afc8589d3d098773574762a89 Mon Sep 17 00:00:00 2001 From: Parth Patel <15544241+ParthPatel-ES@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:33:18 +0100 Subject: [PATCH] fix: 9639: If the Label Studio Editor is open, only block the close-labeling and open-labeling Data Manager shortcuts. Let everything else pass through. --- web/libs/datamanager/src/sdk/hotkeys.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/libs/datamanager/src/sdk/hotkeys.ts b/web/libs/datamanager/src/sdk/hotkeys.ts index 3fd7ec3c3b24..be1ceb0a0559 100644 --- a/web/libs/datamanager/src/sdk/hotkeys.ts +++ b/web/libs/datamanager/src/sdk/hotkeys.ts @@ -44,7 +44,12 @@ export const useShortcut = ( // Yield to editor (LSF) hotkeys when the labeling panel is active. // The flag is set by Label.jsx when labeling starts and toggled via // pointerdown tracking so clicks on the DM table re-enable DM shortcuts. - if (document.body.dataset.lsfLabeling === "true") return; + if ( + document.body.dataset.lsfLabeling === "true" && + ["dm.close-labeling", "dm.open-labeling"].includes(actionName) + ) { + return; + } callback(); },