Skip to content

Add shortcut to toggle overlay layer visibility #11290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zandonella
Copy link

Added a shortcut to toggle the visibility of all overlay layers to Shift + O. This follows the Shift + <key> pattern set by newer shortcuts (e.g., Shift + P) and, as far as I'm aware, does not conflict with any browser shortcuts. I chose O as the key as it is adjacent to the existing Shift + P shortcut on QWERTY keyboards, and is an intuitive letter for "Overlays" to be on.

I used essentially the same logic as toggleStreetSide for toggleAllOverlays with some modifications due to the differences in layer structure. Because the list of selectable overlays has a variable number of overlays, I also had to modify updateLayerSelections to stop them from unchecking on rerender.

Closes #10972

Keybind in keyboard shortcuts:
image

Visibility on (default):
image

Visibility toggled:
image

@tyrasd
Copy link
Member

tyrasd commented Aug 7, 2025

FWIW, the iD Strava Heatmap plugin adds Shift+Q as a keyboard shortcut for toggling the overlay layers. That has the small benefit of being usable with the same hand on the keyboard as one would use to toggle the OSM data layer (Alt+W). On the other hand, Shift+O can be easier to remember (O = overlays). 🤔

@tyrasd tyrasd added the usability An issue with ease-of-use or design label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability An issue with ease-of-use or design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add shortcut to toggle visibility of all overlay layers
2 participants