ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Hoogle Web: Shortcut to switch focus to input id=hoogle #400

Open arialdomartini opened 1 year ago

arialdomartini commented 1 year ago

Feature request: for the keyboard power users, it would be very convenient if they could switch the focus on the search input box via a shortcut (such as a classical /). What do you think?

ndmitchell commented 1 year ago

Reasonable suggestion - does Google.com do the same thing?

arialdomartini commented 1 year ago

Yes.

After you get the result page, pressing / would focus back to the search input box. The same happens with DuckDuckGo (but DDG is much more keyboard friendly: you can even browse the results with cursors or with the Vim's HJKL).

Many sites (but not Google and DDG) also implement ? as the default shortcut for displaying a cheat sheet of the available shortcuts. Try for example in GitHub, Gmail, Google Drive, Slack and Reddit.