Skip to content

Commit 45120f9

Browse files
authored
Merge pull request Expensify#66882 from software-mansion-labs/jakubkalinski0/Help-panel-overlays-with-TestTools-modal
Jakubkalinski0/Help panel overlays with TestTools modal
2 parents b1637c2 + a9c70e7 commit 45120f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/SidePanel/HelpModal/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ function Help({sidePanelTranslateX, closeSidePanel, shouldHideSidePanelBackdrop}
3636

3737
// Close Side Panel on escape key press
3838
useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.ESCAPE, () => closeSidePanel(), {isActive: !isExtraLargeScreenWidth, shouldBubble: false});
39+
// Close Side Panel on debug key press i.e. opening the TestTools modal
40+
useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.DEBUG, () => closeSidePanel(), {shouldBubble: true});
3941

4042
// Close Side Panel on small screens when navigation keyboard shortcuts are used
4143
useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.SEARCH, onCloseSidePanelOnSmallScreens, {shouldBubble: true});

0 commit comments

Comments
 (0)