Why Does Backspace Go Back A Page?
ux.stackexchange.com
ux.stackexchange.com
* It uses a text-input key in a modal way, when no other unmodified text keys are used modally in a web browser.
* Shifting between modes can happen inexplicitly and unintentionally.
* It's potentially destructive.
Add this all up and you have a recipe for users unintentionally and unexpectedly losing data. That's bad enough on its own.
The fact that the justification for it appears to be "because somebody made a poor UI decision 20 years ago and people don't like change" is inexcusable.
Some websites, like Github and Facebook also use input keys modally. I'll very often trigger some UI function by mistake when starting to type a message if the text field is not focused for some reason.
I had overlooked space; probably because the behavior is non-destructive.
And now they did a poor UI decision by making a swipe gesture go back
Which would be ok if it wasn't for the fact that sometimes when scrolling (on anything that has 2 dimensions) you will accidentally swipe back.
I suspect that back and forth in Safari may be non-destructive as well (though I can't confirm this right now)
One of the things that makes it easy to swipe back by mistake is the apple trackpad, so I suspect Safari developers are aware of this and added the indication
I just tried swiping back and forth with this text in the Hacker News comment box and it didn't lose the content. I'm pretty sure I've had issues before, I think in relation to pages loaded by POST.
> Add this all up and you have a recipe for users unintentionally and unexpectedly losing data.
That sounds like a fixable problem, and one worth fixing no matter what your shortcuts are. I hit back and then forward in Firefox, and look, all the text I wrote is still there.
You're operating under the assumption that a text box is the only form of data that a user can lose by navigating away from a page. It isn't.
What form of data is one the browser can have but not keep after you navigate back?
Even if this is kept for inertial reasons (I do make use of it on a trackpad myself), I think as soon as you interact with any kind of text input it should be disabled for the page.
Disabling the key under certain circumstances is usually a support nightmare when trying to explain people that »Backspace goes back to the previous page, except there is text in any input field on the page that you entered, in which case it does nothing. Oh, but the back button in the toolbar still works, as does the side button on your mouse.« (The same problem with disabled UI controls that usually do not say why they are disabled. Some things, e.g. Copy being disabled when there is no selection, are easy enough to figure out but others not so much at times.)
Go to about:config
Search for browser.backspace_action
Set it to 2
All fixed. It is disabled by default in Linux, but someone surely made a mistake and forgot to turn it off by default in Windows in some misunderstood concept of 'compatibility'.But none of that even matters. The real question is:
Why do browsers not have an interface for configuring keyboard shortcuts yet?
And while they're at it, add an interface to customize whether or not JavaScript in web pages can override certain shortcuts. Not being able to rebind C-w, C-t, C-S-t, space, backspace, etc. has been a huge frustration for ages. One of the reasons I use Firefox is that it has a robust enough extension mechanism to support add-ons like KeySnail, but the fact the key rebinding isn't core functionality is just embarrassing.
As for implementing your own textbox that catches backspace, that's a great example of the type of thing that web pages should not be doing. User agents should be responsible for the existence of text-entry fields, that way they can serve the text-entry needs of the user. Different users construct text differently. Also the consistency of UI of allowing users to know how a textbox works (because it's not redefined for each site) is a UI achievement that we have now lost.
Have you ever used Opera? This is in Opera 9 of 7 years ago:
http://i62.tinypic.com/35014du.png
(Edit: apparently it's been removed as of version 15; sad but not too surprising. What drew me to Opera was this and the Quick Preferences menu: http://www.h-online.com/security/imgs/46/3/7/5/6/9/6/op9_f12... --- I don't think I've seen any other browser since that offers this level of control in a stock install.)
"On some pages (but not all) when I want to erase the last few characters I just typed, I tap Backspace several times. Tap tap tap. And then, lo-and-behold, my browser is leaving the page I was on and going back in the tab history."
never happened to me, and I'm really wondering how the asker manages to lose the focus on a text field while he types.
Or perhaps when switching between windows or tabs.
Some people actually surf using tab to focus links, then click with return and goes back with backspace. For them removing the backspace as back function is a big step backwards (haha) in usability. Yes, one could argue that they should just install vimperator and some other addons to make the browser usable with their particular disability. But most handicapped users are just as clueless as normal ones and have no idea how to customize their software.
But wasn't StickyKeys (and other assistance-related settings) created to fix the keyboard modifier problem for users with low mobility?
The backspace frequently has a backwards arrow printed on it, so symbolically it feels right.
Personally I find web pages that break common shortcuts, and navigation paradigms more irritating. Google+ changes the behaviour of CTRL+PGUP/PGDOWN, some sites hijack the spacebar (normally I use for paging), some sites hijack CTRL+CLICK that I use to open links in new tabs.
I never hear people bemoaning the use of the Home key to go to the home page, and its different behaviour in text input areas. But I can appreciate some people don't like it how the controls appear to change, depending on what you are doing, it's far from obvious for some people.
I find The issue with text controls in browsers, is one of focus, thinking that you are in text area, when you aren't etc. The browsers could really help here, by making it really obvious which form element has the focus. It's doubly annoying when you are have focus on a flash component, and none of your keyboard shortcuts feel like they work. I'm a keyboard fan, but really without having some exotic setup, you are reliant upon the mouse with the mainstream OSs because of irritations like these. Which is really irritating for me when I'm trying to do simple things with just the keyboard sitting on the sofa with a computer connected to the TV.
The problem is that "noobs" generally don't care about keyboard shortcuts at all, especially if there's already a large button in the top left of the screen (or the bottom of the device) that does exactly what they want to do. The only keyboard shortcuts my father remembers, for example, are Ctrl+C and Ctrl+V, and he's been using computers for 25 years.
Keyboard shortcuts need to be simple enough to be memorable, but also not too simple so that you don't press it unintentionally. A single key that is also commonly used for a different purpose doesn't seem to fit that criterion.
As a developer it's annoying because it slows down testing - again edge case, but I've seen it before, and it annoyed me.
If it was the standard behaviour and all controls were sensitive to it, that would probably be different.
There's also the security aspect to keep in mind. So now when someone comes back to a page on your machine, might they see something you didn't want them to see?
https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-...
On the other hand, I'd rather Alt+Left be disabled inside text inputs, as I have quite a few times accidentally went back while trying to move the cursor.
The odd thing is that this shortcut is not mentioned in the Back button's tooltip of neither Firefox, IE, Opera, nor Chrome.
Even with the clever "palm detection" (or whatever it's called) feature that is built into most trackpads nowadays, the very location of the trackpad on most laptops makes it too easy to click on something you didn't mean to. It's much easier to keep the focus in a <textarea> if you just type on a standalone keyboard and the mouse is 14 inches away.
Because the original story doesn't add up. If you're typing and press backspace to delete some characters you just typed, without some additional tab pressing, mouse clicking, or Javascript shenanigans on behalf of the website, the browser won't go back in history. That's just a cold hard fact.
Nowadays we enter a lot of data in a web page and having to explain to an end user that the browser works differently depending on where the cursor is might be confusing for them.
A decade ago most people just used the internet for consuming the page (browsing), sometimes entering a few lines of data. Having the back button go back in your navigation makes sense in that respect as you are "browsing", not creating.
Re: "it's totally destructive", actually it is not destructive, you can hit backspace in the middle of your edits, go to the previous page, then go to the forward arrow in your browser and voila.. the text you entered is still there!
Of course that isn't true on every website as quite often the site developer is trying to do "smart" things. It is however a standard html feature and I just did that here while typing my text and it works fine on hacker news.
Personally I like the back button in my browser to go back in my browsing history, as mentioned by others, this is configurable in firefox.
Even the alt + arrow shortcut is a bad idea because it mean "go to the beginning of the word" in Mac OS. I had very bad issue with the CMD + Arrow in my Chrome, because when I type I don't use the mouse.
Ctrl + CMD + Arrow is the perfect shortcut for me (and I think, for every XCode users).
So this is leftover damage from Microsoft's bizarre campaign to fuse Internet Explorer with Windows Explorer? Why do I suddenly want to hurt someone?
It's not like they're being purposefully obnoxious - no more than when people answer with, 'why would you want do that?'
I don't really care if it's the default or not, I would just want the option to turn it off in Chrome.
- "Murphy's Law"
[1] https://code.google.com/p/chromium/issues/detail?id=144832
go back: alt+left arrow go forward: alt+right arrow
Deleted comment