From 0afaf2ac0b1c1b261ebc281a47b6f515cdf79c51 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 13 Jan 2025 12:11:34 -0800 Subject: [PATCH] fix: Listen for keyboard shortcuts when the widget or dropdown divs have focus. --- core/inject.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/inject.ts b/core/inject.ts index b425d77b74..40016bc23f 100644 --- a/core/inject.ts +++ b/core/inject.ts @@ -77,6 +77,16 @@ export function inject( }); browserEvents.conditionalBind(subContainer, 'keydown', null, onKeyDown); + browserEvents.conditionalBind( + dropDownDiv.getContentDiv(), + 'keydown', + null, + onKeyDown, + ); + const widgetContainer = WidgetDiv.getDiv(); + if (widgetContainer) { + browserEvents.conditionalBind(widgetContainer, 'keydown', null, onKeyDown); + } return workspace; }