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/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to