I am editing a lot of data in a web application using Firefox, and occasionally I hit the backspace key without focusing on a field, and FireFox goes back one page, erasing all the data I entered.
The developers of the application say that a box should come up asking me if I am sure I want to leave the page, because I have unsaved changes. That only works sometimes. Until they fix that behavior, what can I do on my local machine to disable the backspace button's "go back" functionality?
Answer
- Navigate to about:config in the address bar
- set the filter to browser.backspace_action
It is an integer value, change it to the desired setting:
0 - Pressing Backspace will go back 1 page in session history and Shift + Backspace will navigate forward 1 page in session history.
1 - Pressing Backspace will scroll the page up in the current document and Shift + Backspace will scroll it down.
Any other positive integer (2 or more) will unmap the backspace key, which is what you want. But keep in mind, the integer data type has a limit, so don't got crazy. 2 will be fine.
No comments:
Post a Comment