Skip to content

Commit

Permalink
Allow keyboard shortcuts help appear when modals are opened
Browse files Browse the repository at this point in the history
Except Catch-up because it has its own Help.
  • Loading branch information
cheeaun committed Jan 25, 2025
1 parent d0862ce commit b1cad57
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 37 deletions.
6 changes: 4 additions & 2 deletions src/components/keyboard-shortcuts-help.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ export default memo(function KeyboardShortcutsHelp() {
},
{
ignoreEventWhen: (e) => {
const hasModal = !!document.querySelector('#modal-container > *');
return hasModal;
const isCatchUpPage = /\/catchup/i.test(location.hash);
return isCatchUpPage;
// const hasModal = !!document.querySelector('#modal-container > *');
// return hasModal;
},
},
);
Expand Down
70 changes: 35 additions & 35 deletions src/locales/en.po

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1cad57

Please sign in to comment.