You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: guerda [Submitted to the original trac issue database at 3.14pm, Wednesday, 1st June 2011]
If you visit openstreetmap.org, there's no input field that accepts key strokes immediately. There's no input field at all that may need user inputs, but the search field.
I propose to put the autofocus on the search input field so that a user can directly search for a place, a street or whatever.
The following snippet (inspired by 1) would establish autofocussing the search input field via the HTML5 autofocus attribute and a fallback method for not so current browsers.
Author: TomH [Added to the original trac issue at 5.57pm, Tuesday, 31st January 2012]
Couple of comments:
It would be better to use jQuery rather than non-portable document methods
There seems to be little benefit to using the HTML5 autofocus attribute - if we need the fallback code for other cases then we might as well just use it all the time
At the end of the day, it will happen a lot quicker if you provide a patch for the source, otherwise you'll have to wait until somebody is interested enough to write one.
Reporter: guerda
[Submitted to the original trac issue database at 3.14pm, Wednesday, 1st June 2011]
If you visit openstreetmap.org, there's no input field that accepts key strokes immediately. There's no input field at all that may need user inputs, but the search field.
I propose to put the autofocus on the search input field so that a user can directly search for a place, a street or whatever.
The following snippet (inspired by 1) would establish autofocussing the search input field via the HTML5 autofocus attribute and a fallback method for not so current browsers.
The text was updated successfully, but these errors were encountered: