Skip to content

Commit

Permalink
fix: Listen for keyboard shortcuts when the widget or dropdown divs h…
Browse files Browse the repository at this point in the history
…ave focus.
  • Loading branch information
gonfunko committed Jan 13, 2025
1 parent 3a52aad commit 0afaf2a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0afaf2a

Please sign in to comment.