[openstreetmap/openstreetmap-website] make sure iD's iframe is focused on startup (PR #6083)
Martin Raifer
notifications at github.com
Tue Jun 3 11:27:51 UTC 2025
Focus iD's iframe element to allow iD to receive keyboard shortcuts directly after loading. This is useful when people want to start adding new elements right away using the shortcuts (`1`, `2`, `3`), to pan/zoom the map using the arrow keys, to open the help dialog `?`, to directly perform operations on a pre-selected map feature, or to use standard browser keyboard navigation (e.g. `tab`) in the editor.
This fixes https://github.com/openstreetmap/iD/issues/9828
This PR also contains a fix the annoying false-positive exception on iD's startup, see https://github.com/openstreetmap/openstreetmap-website/pull/5823#discussion_r2035464188
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6083
-- Commit Summary --
* make sure iD's iframe is focused on startup
-- File Changes --
M app/assets/javascripts/edit/id.js.erb (3)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6083.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6083.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6083
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6083 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250603/81b54f54/attachment.htm>
More information about the rails-dev
mailing list