TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What key combination do you prefer for search on a website?

6 pointsby holistioover 2 years ago
I&#x27;m implementing a platform mostly targeted towards developers. The search bar is a central part of it, and I, just like lots of us prefer to use the keyboard as much as possible over pointing devices.<p>My instinct says I should go with Cmd+K, as it&#x27;s standard in so many apps nowadays and doesn&#x27;t hijack the default Cmd+F. I&#x27;ve also seen Cmd+&#x2F; and other things being used elsewhere.<p>Do you have a preference or do you feel like there&#x27;s a de facto standard emerging here?

8 comments

justsomehnguyover 2 years ago
Ah, a typical wrong question.<p>The right one would be:<p>Do you even need some key combo to go to the site search box?<p>How many times a day do you really do that?<p>If you really-really use this, which key combo do you use or would prefere to use?&quot;<p>(yes, I&#x27;m tired of absolutely useless search on the most of the websites which sometimes doesn&#x27;t implement even a full-text search on the topic <i>contents</i> AND ALSO is stealing my keys and focus)
theddayover 2 years ago
Control-f for find is a classic. I do like using slash (&#x2F;) for finding as well. If you&#x27;re recognizing the keys yourself, do away with control and just have at it with f or slash for find, t and b for top and bottom and left and right arrow keys for next and previous pages, if such are applicable.
评论 #33603372 未加载
puffoflogicover 2 years ago
I prefer that websites don&#x27;t implement any kind of key bindings at all. All they accomplish is interfering with my extensions (Vimium, etc.). My extensions guarantee a consistent set of bindings across sites. I&#x27;m not going to memorize your site&#x27;s key bindings. I have never intentionally used any site&#x27;s key bindings but I use my extensions daily.
MH15over 2 years ago
Cmd&#x2F;Ctrl+K is the standard recently, I&#x27;d go with that. Please don&#x27;t hijack browser-native find behavior.
logicalmonsterover 2 years ago
1) You might be overthinking this question by worrying too hard about keyboard shortcuts at this stage. Until you have a site worth a damn, even technically knowledgeable developers aren&#x27;t going to be worrying about looking for another set of keyboard shortcuts to learn: they&#x27;ll be looking for a search button to click same as 99% of users out there. (I pulled that statistic out of my butt, but I&#x27;m 89% sure that I&#x27;m 96% correct.)<p>2) I feel like overriding default operating systems patterns is almost always the wrong move for any question. I&#x27;d get a bit ticked if CMD+F worked differently than I expect for finding an item on a page.
phillipseamoreover 2 years ago
It&#x27;s wise to use simple characters and not symbols like the forwards slash as it might not be the a dedicated key in some languages on keyboards. You might also consider allowing remapping keyboard shortcuts.
iamevnover 2 years ago
I&#x27;d generally prefer the search bar be one of the first things available to tab over to. Ctrl+f and slash are used by my browser to search the page and I would rather the page not take over those keys.
matt_heimerover 2 years ago
What websites do this beside google.com? I haven&#x27;t seen it often but maybe I&#x27;m just not trying it frequently.<p>Edit:<p><pre><code> * Github supports &#x2F; * Google supports &#x2F; * AWS Console supports Alt+S</code></pre>