FS#45643 - [AUR4] Please don't use autofocus for text input widgets

Attached to Project: AUR web interface
Opened by jackoneill (jackoneill) - Tuesday, 14 July 2015, 11:23 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 10 October 2015, 23:10 GMT
Task Type General Gripe
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.0-rc6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

When you go to a package's page ( https://aur4.archlinux.org/packages/mingw-w64-flac/ ), the "Keywords" text input widget from the search box automatically receives keyboard focus, because it uses the "autofocus" property:

<input type='text' name='K' size='30' value="" maxlength='35' autofocus="autofocus" />

This is a bad idea, because when you go to a package's page, it's unlikely you're going there to perform a search. It's much more likely that you'll want to look around, read the comments, etc. Because that text input widget has the keyboard focus, you can't use the arrow keys to scroll the page. You can't use the keyboard to do anything but type words there, actually, until you press Escape. (I use Vimperator...)
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 10 October 2015, 23:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 4.1.0.
Comment by Stefan Auditor (sanduhrs) - Wednesday, 12 August 2015, 15:50 GMT
And it's especially annoying on mobile where the keyboard automatically covers have of the screen after the page has loaded.
Comment by Stefan Auditor (sanduhrs) - Wednesday, 12 August 2015, 15:56 GMT Comment by Marcel Korpel (Marcel-) - Wednesday, 12 August 2015, 16:11 GMT
This is already addressed in 4.1.0. Only on the package search page autofocus is retained:
https://lists.archlinux.org/pipermail/aur-dev/2015-July/003580.html

Loading...