Skip to content

Commit f9ef785

Browse files
authored
fix: Listen for keyboard shortcuts when the widget or dropdown divs have focus. (#8731)
1 parent 3a52aad commit f9ef785

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

core/inject.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ export function inject(
7777
});
7878

7979
browserEvents.conditionalBind(subContainer, 'keydown', null, onKeyDown);
80+
browserEvents.conditionalBind(
81+
dropDownDiv.getContentDiv(),
82+
'keydown',
83+
null,
84+
onKeyDown,
85+
);
86+
const widgetContainer = WidgetDiv.getDiv();
87+
if (widgetContainer) {
88+
browserEvents.conditionalBind(widgetContainer, 'keydown', null, onKeyDown);
89+
}
8090

8191
return workspace;
8292
}

0 commit comments

Comments
 (0)