10

I've noticed more and more websites are stealing browser hotkeys.

Alt+D is perhaps the most obnoxious. I use this constantly to change website. Yet so many websites are stealing the hotkey for their own system - which is really stupid because if you are going to put the effort in to learn hotkeys for a website, you've probably already put the effort in to learn hotkeys for the browser! For example, Google Sheets stealing Alt+D to open the data menu.

Is there any way to prevent websites from overriding browser shortcuts?

  • 2
    Doubtful. I mean one option is to disable javascript but I think you can guess the negative effects that would have. – Dave Jan 12 '18 at 8:31
  • Have you noticed that the StackExchange editor has a bunch of its own hotkeys? – Barmar Jan 12 '18 at 17:35
  • For just ALT+D, consider using CTRL+L. I think it is more well known and less likely to be overridden. F6 is an alternative. All three shortcuts work almost everywhere, even Firefox, Windows Explorer, iexplore, Edge, etc.. – binki Jun 12 '18 at 0:04
  • Ctrl+L doesn't work great since it's on the other side of the keyboard, but F6 is a good tip. Hard to train myself to change that hotkey though. Thankfully it's just a couple of sites! Thanks for the tip – Radley Sustaire Jun 20 '18 at 17:22
4

Not exactly a way to prevent but a workaround (that also works in Google Sheets).

In short, we want the browser to focus something else besides the website so we can use any shortcut we want. And there are some shortcuts that get you out of the website's grip and focus to the browser's other elements:

  • Alt: Focus browser menu. This is the easiest one but there are other options if the website blocks this.
  • Alt+D: Focus address bar
  • Ctrl+L: Focus address bar
  • F6: Focus address bar
  • Ctrl+E: Focus search bar (or address bar and start searching)
  • Ctrl+K: Focus search bar (or address bar and start searching)
  • Ctrl[+Shift]+Tab: Change tab as the last resort

So even if the website is blocking some shortcuts, one of these will most likely work. When you get focus something else besides the website you can use the shortcut you wanted to use in the first place.

E.g. to focus address bar while in a Google Sheets document press Alt (and lift your finger), then press Alt+D.

| improve this answer | |
  • It was never practical to learn a new (less convenient) hotkey. But knowing that you can press alt once, then press alt+d is a FANTASTIC workaround. I will accept this answer. I was never too keen on Ctrl+L or F6. Thanks! – Radley Sustaire Oct 24 '18 at 8:59
  • Any equivalents for Mac? Specifically looking for something equivalent to Alt – Bruno Ely Feb 18 '19 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.