Live data from Hacker News

Ask HN: Please stop overriding standard browser navigation keys with Javascript.

news.ycombinator.com

1–10 of 59 posts

Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#1
Google, I"m looking at you. Google.com changes the behavior of the cursor keys in input boxes to a behavior inconsistent with the rest of the Web and the rest of host operating systems.

Moreso, Google will capture and change the expected behavior of the arrow keys for scrolling.

Today I noticed that Google.com has overrided backspace, a shortcut for "Back" on every browser, including Chrome.

This is not cool. I use a laptop and rely on consistent behaviors of keyboard navigation on the web. I don't want to have to have to learn different (shoddily) implemented navigation patterns every time someone decides to change something.

This is a bad trend in my opinion. What does HN think?

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#2
I suspect it's because of Google Instant (a feature I don't really like), which has to interact with the server every time a key is pressed to ensure that the results are "live".

If you use the gear icon in the top-right of Google.com to go to "Search settings" and turn off Google Instant, it may fix the problem.

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#3

I suspect it's because of Google Instant (a feature I don't really like), which has to interact with the server every time a key is pressed to ensure that the results are "live". If you use the gear icon in the top-right of Google.com to go to "Search settings" and turn off Google Instant, it may fix the problem.

Google isn't the only culprit. When Gawker introduced their much-maligned redesign, their sites also rebinded arrow keys to customized interactions like Advance to Next Story. A few months on, and luckily most of these "features" have been removed.

When UX interactions behave consistently at the OS and browser level across 99% of the web, why would I want to see an unpredictable custom behavior on a certain site? I hold Google to an even higher level of responsibility because their actions set precedents that other sites may emulate.

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#5
IMO backspace as a shortcut key deserves to be overridden. I can't tell you how many times I've accidentally left a page while typing backspace after losing focus in a form I thought I was editing.

If I were Google, I'd rather reduce the potential for negative experiences from shortcuts for my customers, most of whom I'm guessing rarely use them.

Also, how are the cursor keys being overridden in a non-standard way? Every input box on Google Search feels intuitive to me.

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#6
post #4

Sounds like this is a good opportunity for a Chrome Extension :) (BTW, backspace does nothing for me on Chromium 14 and Linux)

A Chrome extension to make yourself accidentally back out of webpages from time to time? Funny.

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#7

IMO backspace as a shortcut key deserves to be overridden. I can't tell you how many times I've accidentally left a page while typing backspace after losing focus in a form I thought I was editing. If I were Google, I'd rather reduce the potential for negative experiences from shortcuts for my customers, most of whom I'm guessing rarely use them. Also, how are the cursor keys being overridden in a non-standard way? E…

Completely agreed on backspace; Alt/Cmd+Left already covers it well enough. (I've been having a similar problem with two-finger swipe pageback in Chrome anytime I need to scroll horizontally.)

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#8

IMO backspace as a shortcut key deserves to be overridden. I can't tell you how many times I've accidentally left a page while typing backspace after losing focus in a form I thought I was editing. If I were Google, I'd rather reduce the potential for negative experiences from shortcuts for my customers, most of whom I'm guessing rarely use them. Also, how are the cursor keys being overridden in a non-standard way? E…

If Google wants to take a stand and change the behavior of backspace, they should do it in their browser. What they should not do is implement a standard keyboard navigation at the browser level, and then override it with nonstandard actions occasionally.

Re: Ask HN: Please stop overriding standard browser navigation keys with Javascript.

#9
1. I hate, hate, hate that the backspace key is a shortcut for "back". I have never, not once hit the backspace key wanting to go back to the previous page.

2. I'll generally give the bigger players like Google some lee-way in trying out new functionality like this. It's the smaller sites that should generally stick to familiarity (except for the handful who are making a point of exploring behaviors).

Post reply on HN