Hacker News new | ask | show | jobs
by degenerate 2070 days ago
Please don't override default keyboard shortcuts. The sitewide search is a nice tool, but if I wanted to do that I would search on your site. Novice and advanced users want CTRL+F to behave as they are expecting, not bring up an unfamiliar (and unrelated) tool. For example Google Sheets also hijacks CTRL+F but at least it replaces it with something that operates extremely similar to the original action.
1 comments

Why should a browser allow its own shortcuts to be overridden at all? At the very least, some form of warning or permission-granting should be involved.
They're permitted to be overridden so that we can make web applications. It makes sense for sites like Google Docs or Sheets to override many of the defaults as, once loaded, it's replacing a desktop application and the common access patterns of it. It's less applicable (and very annoying) on sites meant for presentation or consumption of information.
But users should be able to override and specify that certain shortcuts can’t be hijacked.
That I would agree with 100%. It'd be nice to have a panel of all the shortcuts and their present meaning available, with the option to rebind them or remove site-local bindings.

The user could get the option to prevent (by default) changes to bindings, with the option to permit them on a site-by-site (or even page-by-page) basis; or to allow them by default and then deny them on a site-by-site basis.

I have this as one part of Pentadactyl. I think SurfingKeys et. al. also allow this to some extent.
Yes. Discourse does this to great effect. It searches the whole “page” by default, when all the content for the “page” isn’t actually loaded in the browser.