#544 closed enhancement (fixed)
autofocus search input in omega template
Reported by: | Michael Shigorin | Owned by: | Olly Betts |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.6 |
Component: | Omega | Version: | 1.2.5 |
Severity: | trivial | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Operating System: | All |
Description
I've just re-done for 1.2.5 and decided to post a tiny usability proposal for omega/templates/query:
-<body bgcolor="#ffffff"> +<body bgcolor="#ffffff" onload="document.P.P.focus();">
Change History (3)
comment:1 by , 14 years ago
Status: | new → assigned |
---|---|
Summary: | [FR] omega template += autofocus → autofocus search input in omega template |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in trunk r15508. Tested with chromium 6.0.472.63 (which supports the HTML5 autofocus attribute) and iceweasel 3.5.16 (which doesn't).
Also changed on http://xapian.org/ (but only for the search results page - I think it probably doesn't make sense to focus the search box on every page).
comment:3 by , 14 years ago
Thanks, Olly. Xapian is one of my favourite upstreams, and there are a few hundreds I package. :)
Note:
See TracTickets
for help on using tickets.
Yes, adding autofocus would be good.
I think it would be better to use the HTML5 autofocus attribute, with a fallback to javascript (and not via onload, as that's annoying if you start to interact with the form before the page has fully loaded):
http://diveintohtml5.org/forms.html#autofocus