RFR: 8243388: Moving search result selection clears search input

Hannes Wallnoefer HANNES.WALLNOEFER at ORACLE.COM
Wed Apr 22 12:46:10 UTC 2020


Please review a trivial javadoc UX fix:

JBS: https://bugs.openjdk.java.net/browse/JDK-8243388
Webrev: http://cr.openjdk.java.net/~hannesw/8243388/webrev.00/ <http://cr.openjdk.java.net/~hannesw/8243388/webrev.00/>
API (index page only): http://cr.openjdk.java.net/~hannesw/8243388/api.00/ <http://cr.openjdk.java.net/~hannesw/8243388/api.00/>

In any API docs since JDK 9 moving through search results using the up/down keys clears the search input, preventing the user from editing/refining it further. The search term only reappears when one moves all the way up before the first search result. 

The fix is to cancel the focus event in the search widget by returning false in the event handler as documented here:

https://api.jqueryui.com/autocomplete/#event-focus <https://api.jqueryui.com/autocomplete/#event-focus>

Thanks,
Hannes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/javadoc-dev/attachments/20200422/23c963d1/attachment.htm>


More information about the javadoc-dev mailing list