Jisho

×
B6943fd358ee9103504fb57516cd5643
0 Replies ・ Started by Schiz at 2017-11-26 17:40:05 UTC

Keyboard shortcut for search box - super easy to implement

It would be very convenient for me, and probably for other users as well, to have a keyboard shortcut that puts the search text box in focus, so that we don't have to scroll and use the mouse for each subsequent search.

This can be easily implemented by adding the following property to the HTML tag of the search box:
accesskey="1"
Now the box can be easily focused by pressing Alt+1 (Alt+Control+1 in FF).

Documentation of this feature: https://www.w3schools.com/tags/att_global_accesskey.asp

Thanks!

to reply.