Skip to content

Commit

Permalink
Do not disable context menu on the landing page.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 52fda0b95bcccab40756b662286ba0e4347cd5af
  • Loading branch information
cpojer committed May 6, 2024
1 parent aaf8994 commit fc7a1a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/controls/setupKeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ export default function setupKeyboard() {
setup = true;
document.addEventListener('keydown', keydownListener);
document.addEventListener('keyup', keyupListener);
if (process.env.NODE_ENV !== 'development') {
if (
process.env.NODE_ENV !== 'development' &&
!process.env.IS_LANDING_PAGE
) {
document.addEventListener('contextmenu', preventDefault);
}
}
Expand Down

0 comments on commit fc7a1a2

Please sign in to comment.