Skip to content

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Sep 23, 2025

The data-jp-suppress-context-menu attribute suppresses the context menu on right click in JupyterLab
https://jupyterlab.readthedocs.io/en/latest/extension/extension_points.html#context-menu
https://jupyter.zulipchat.com/#narrow/channel/471314-geojupyter/topic/Possible.20to.20disable.20JupyterLab.20popup.20on.20right.20click.3F/near/541082696

Before:

Screen.Recording.2025-09-23.at.12.15.13.PM.mov

After:

Screen.Recording.2025-09-23.at.4.41.19.PM.mov

Note that on its own, this is not that much different, as it shows the native browser modal instead of the JupyterLab modal. But when we switch to using MapboxOverlay, that will then allow panning with a ctrl or right click:

Screen.Recording.2025-09-23.at.4.43.16.PM.mov

@github-actions github-actions bot added the feat label Sep 23, 2025
@kylebarron kylebarron merged commit 2f513ac into main Sep 23, 2025
7 checks passed
@kylebarron kylebarron deleted the kyle/avoid-jupyterlab-modal branch September 23, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants