Disable backspace key as 'go back'
Does anyone know a way to prevent the backspace key from acting like a shortcut for "Go back"?
I never, ever use backspace for that function. The only times I go to the previous webpage by pressing the backspace key are unintentional and often cause loss of information on dynamic webpages.
I believe that making the backspace key act as both a text editing tool and a history navigation shortcut, based solely on whether the cursor is inside a text field or not, is a serious design flaw. I may be mistaken but I believe this behaviour was copied from Internet Explorer. Why on earth did Apple copy a design flaw from the most flawed browser in the world?
So, kudos to anyone who knows a Safari equivalent of setting "browser.backspace_action 2" in Firefox.
Hi Derek,
This feature is sufficiently annoying to make we want to change browsers until Apple fixes it.
Safari menu > Report Bugs to Apple...
Everyone here on the forum is just a fellow user like yourself. I'm not aware of a way to override it, but maybe someone else will chime in.
Similar Messages
-
How can I disable 'backspace' key from navigating back a page?
Several times over the last couple weeks, I type up a very well thought out response on Facebook in political conversations with friends. An hour or two into my work, I hit backspace with the intent of editing what I wrote (maybe after I scrolled or something, so maybe I unintentionally took the edit window out of focus). The navigator takes me back a page and I lose my two hours of work. Infuriating! Shortcuts with the ability to wipe out two hours of works should be disable-able. Not only that, I feel that is an unsafe shortcut for this very reason, and would have added a SHIFT modifier key or something like that. I think I invented a cool word: disable-able.
You can set the Integer pref <b>browser.backspace_action</b> to <i>2</i> on the <b>about:config</b> page to disable the backspace action. BTW Shift + Backspace does the reverse: going Forward if possible, so that is taken as well.
* http://kb.mozillazine.org/browser.backspace_action
*http://kb.mozillazine.org/about:config -
I'm trying to figure out how to disable the backspace key on
an input form. Or, I need to figure out why I can't type into an
input field after I've backspaced(erased) all the
characters?Hmmm... I've not seen where you can't type after deleting all
the
characters. Do you maybe have the input set to multiline and
have the top
line blocked or something? I don't know that there's an easy
way to disable
Backspace for an input field.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
How to disable function key shortcuts in webgui
hello,
I want to disable shortcut keys like F3(back) in ITS webgui. however hiding menus in webgui, function keys are still working
Thanks & regards
Kishan RanaHello Kishan,
Thanks for posting the answer.
Does the note
1501768 ITS: Config. permitted or prohibited OK codes during start
offer any additional help here? Will further restrict the behaviour of a transaction.
Regards,
Oisin -
this is sort of a javascript question, but its on my jsp pages so i'll ask. ;)
I would like to be able to disable the backspace key so that
a user cannot hit it to travel back a page. However, i want to leave
it enabled so that they can at least backspace while in form text elements and text areas, etc.
i have this bit of code (see bottom) that will capture the backspace, but it turns it off even for the text elements in a form.
the good news is that its for an intranet application and we are only going to be supporting IE 5.5 or better, so it doesn't have to be cross browser compatible
thanks,
ken
<script language="JavaScript"><!--
document.onkeydown = mykeyhandler;
function mykeyhandler() {
if (window.event && window.event.keyCode == 8) {
// try to cancel the backspace
window.event.cancelBubble = true;
window.event.returnValue = false;
return false;
//--></script>There are two ways to approach this, and neither are very elegant, though they both should work in i.e. (other browsers will presumably have an analogous method for accomplishing them). Firstly, you could use a client script to populate the onblur and onfocus properties of all your forms on the client page. Something like
for(var i = 0; i < document.forms.lenth; i++) {
document.forms.item(i).onfocus = "inform=true";
document.forms.item(i).onblur = "inform=false";
}This means that you could leave your forms the way they are. Note that the forms collection of the document is an i.e. only thing. Alternatively, and this is the preferred method, you could simply ask the even which object fired it and evaluate whether or not to cancel the event using an if statement. Again, in i.e. only, every event has the srcElement property which is the object that fired the even. In the case of a keydown event, the object that fires the event is whatever is selected when you press the key. Specifically, if the backspace key is pressed in a text field or textbox etc. it will tell you if you ask. Something like
document.onkeydown = keyCatcher
function keyCatcher() {
var e = event.type;
if(event.keyCode==8 && e != "text" && e !="password" && e !="textarea" ) {
event.cancelBubble = true;
event.returnValue = false;
}You'll notice that the previous method is by far the fastest as it only has 3 compisons, as opposed to the many required for sorting through all of the form and input elements. Also you need no global variables.
Lastly you could check to see if an input tag is the activeElement when the backspace key is pressed and if one is, block it. Something like
document.onkeydown = keyCatcher
function keyCatcher() {
if(event.keyCode==8 ) {
for(var i = 0; i < document.tags("input").lenth; i++) {
if(document.tags("input").item(i) == document.activeElement) {
event.cancelBubble = true;
event.returnValue = false;
}Again, both the tags collection and the activeElement property are I.E. only things. For other browsers I assume you would need some kind of detection script and some options (or just don't block they're backspace keys). Also, I haven't tested any of this code, but you get the idea. -
I recently allowed the software update and the installation of java 7 has disabled a key task I need for my business, specifically being able to view 360 degree tours that I create.
Slightly different OS and update, but I was able to use Pacifist to install the java Update 15 for mac os 10.6 after Update 16 had screwed up some business-critical sw of ours. You will need to go to the downloads site and download the previous update, and then use Pacifist to re-install the earlier version.
http://stackoverflow.com/questions/6411909/how-to-downgrade-jre-jdk-on-mac-osx
This might or might not actually work -- it depends entirely upon the details of the updates, and you could end up in some weird jumble of pieces-of-multiple-updates all together... Java updates are patches, not a full copy of the software, so to really go back you have to start from the beginning and apply the updates in order. In the case of Update 16, we were lucky in that whatever was screwing up our program was changed in both Update 15 and Update 16, so writing the Update 15 back overtop of 16 fixed our problem. -
When typing in a browser page to reply to a blog, when I pressed the backspace key to correct a typo, suddenly the browser went back to the previous web page. How can this setting be changed or turned off?
This should never happen when the cursor is in an editing control, but it has always done that if the focus was on the page itself.
Here's how to change it:
(1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
(2) In the search box that appears above the list, type or paste '''backs''' and pause while the list is filtered
(3) Double-click the '''browser.backspace_action''' preference and enter the desired value:
* 0 => back (default)
* 1 => page up
* 2 => ignore (actually, anything other than 0 or 1 does nothing)
OK to save the change. You're done. -
Anyway to Disable Backspace as a shortcut for going back?
Sometimes, when posting on a forum like this ... or really anywhere on the web, if I accidently leave a text field (after spending way too much time writing something really witty of course) or accidently hit backspace, Safari 5.03 goes back. I know it's my fault for screwing up, but losing my work over a stupid mistake really *****. Anyway a cluts like me can disable BACKSPACE as a short cut for going back in Safari??? It's driving me nuts, but I don't really want to use IE or any other browser.
yes (i should have been clearer), with that option set hitting backspace puts you back in a text field (if there is one) instead of going back one page. it should work properly once you've reloaded any pre-existing pages but do let me know if there are cases* where it doesn't.
*it obviously doesn't work where safari extensions are disabled, like on extensions.apple.com. -
Microsoft Excel keeps freezing on back after using backspace key
Don't know if this can be answered here, but I keep trying to use the backspace key in Excel and I keep getting a beachball, where only Excel freezes but I can use the rest of my computer. Any help?
I am running Snow Leopard 10.6.8, no office updates needed. Office 2004. Never had issues with this until recently.
Thanks in advance.I suggest you try MS's own forums for their Mac products, as it's their software you're having issues with
http://answers.microsoft.com/en-us/mac -
Disable Backspace when in input text fields
Im trying to find a way to disable the keyboard backspace
button from going back a page in the site but allowing it to
function as a character delete when needed for typing in an input
text field of a form.
Strangely this problem only occurs for about a minute after
the page is opened....after that it then works correctly. You can
see what I mean by accessing the site's contact page
www.safetybusiness.co.uk
I have found two different sets of code to disable the
Backspace completely, but this then means it doesn't work at all
when wanting to delete in the text field.
Method 1:
<script type="text/javascript">
if (typeof window.event != 'undefined')
document.onkeydown = function()
if (event.srcElement.tagName.toUpperCase() != 'INPUT')
return (event.keyCode != 8);
else
document.onkeypress = function(e)
if (e.target.nodeName.toUpperCase() != 'INPUT')
return (e.keyCode != 8);
</script>
Method 2:
<script>
function checkShortcut()
if(event.keyCode==8 || event.keyCode==13)
return false;
</script>
<body onkeydown="return checkShortcut()">
Anyone know how I can overcome this?The TextField class has a tab order property. You may want to
look into this. As for disabling the backspace key, you can grab
key presses from user input. I'm not 100% on this but you could use
Flash to test the key being pressed. If backspace is pressed, find
out the current object with focus (unsure of this part), if it's an
input box in flash, have flash handle it or if a text box doesn't
have focus, send it out to javascript to have it handle it. -
How to tackle BACKSPACE key behaviour?
Hi,
i noticed some nasty thing about pressing BACKSPACE key in a form.
it causes navigation to previous page .
How can i tackle it?
JDev 11.1.2.3Hi
It is not related to ADF and web browser behavior
See
http://mcrusch.wordpress.com/2009/02/03/disabling-back-behavior-of-backspace-in-browser/ -
Disable backspace in dgv combobox
I would like to disable backspace and delete in a combo box in a dgv
I used the following
Private Sub frmWorkSelectionPopupAll_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.Delete And e.KeyCode = Keys.Back Then
e.Handled = True
End If
End Sub
Delete is disabled, backspace is not.
I have set the form KeyPreview to True.
Can you please suggest something?
JohnThe options for DisplayStyle are "ComboBox", "DropDownButton" and "Nothing". No luck with any of the 3.
Are you referring to something else?
I tried to replicate the issue by creating an app with a DataGridView and three columns. However I could not EDIT in the ComboBox column anything without using a special Sub routine to do that.
Nothing I tried would let me use the keyboard or mouse to do anything in the ComboBox. Except for using Edit Mode and AutoComplete in which AutoComplete is unecessary in your situation I would imagine. Then I could type a letter while over the ComboBox
and I suppose if something in the ComboBox's list matched it would display. But even then I couldn't backspace or anything else or actually alter text displayed by the ComboBox.
And I believe from this link
Problem with combobox and databound datagridview that this statement is entirely accurate "The ComboBox used by the DataGridViewComboBoxColumn has a DropDownStyle property set to ComboBoxStyle.DropDownList, but DataGridViewComboBoxColumn does
not expose this property, so out-of-box there is no way to type text into a combobox column."
However at that link is code supplied which can not only provide the ability to edit text in a ComboBox in the ComboBox column but actually add new items to the ComboBox list (or alter it to remove items, whatever) which I used in the below code the Sub
that allows editing text in a ComboBox in a ComboBox column. So unless you are doing something along those lines I really don't know why you are having an issue. Nobody should be able to alter anything in the ComboBox's in the ComboBox column using the keyboard.
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
DataGridView1.ColumnCount = 3
DataGridView1.Columns(0).Name = "Product ID"
DataGridView1.Columns(1).Name = "Product Name"
DataGridView1.Columns(2).Name = "Product Price"
Dim row As String() = New String() {"1", "Product 1", "1000"}
DataGridView1.Rows.Add(row)
row = New String() {"2", "Product 2", "2000"}
DataGridView1.Rows.Add(row)
row = New String() {"3", "Product 3", "3000"}
DataGridView1.Rows.Add(row)
row = New String() {"4", "Product 4", "4000"}
DataGridView1.Rows.Add(row)
Dim cmb As New DataGridViewComboBoxColumn()
cmb.DisplayStyle = DataGridViewComboBoxDisplayStyle.DropDownButton
cmb.FlatStyle = FlatStyle.Flat
cmb.AutoComplete = True
cmb.HeaderText = "Select Data"
cmb.Name = "cmb"
cmb.MaxDropDownItems = 4
cmb.Items.Add("Hello")
cmb.Items.Add("Goodbye")
cmb.Items.Add("Seriously?")
cmb.Items.Add("Not")
DataGridView1.Columns.Add(cmb)
End Sub
Private Sub DataGridView1_EditingControlShowing(sender As Object, e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing
'Allow user to enter new values for ALL DataGridViewComboBox controls in the DataGridView
If (TypeOf e.Control Is DataGridViewComboBoxEditingControl) Then
Dim cmb As DataGridViewComboBoxEditingControl = CType(e.Control, DataGridViewComboBoxEditingControl)
If Not cmb Is Nothing Then
cmb.DropDownStyle = ComboBoxStyle.DropDown
End If
End If
End Sub
End Class
La vida loca -
My Keyboard and the Delete/Backspace Key
So last night I was looking through my system settings and making small tweaks here and there where I wanted them. It was a nice little experience. However, I somehow disabled my delete(backspace) key completely. Also other keys like my shift key are suddenly sticking. I have gone back in and tried to restore everything back to factory settings on my keyboard and still nothing. Am I missing something or is there somewhere else I should be looking to fix this besides going into System Preferences>Keyboard and Mouse>???? I am so confused I do not know what I did.
Am I missing something or is there somewhere else I should be looking to fix this besides going into System Preferences>Keyboard and Mouse
Yes. "Shift key sticking" sounds like 'Sticky Keys' - check in System Preferences > Universal Access > Keyboard. -
I need some assistance on stopping my backspace key from "sticking" on my iPad 2?
I have reset, restored, and rebooted. Nothing is working. My backspace key goes rogue even if I only hit it once. I've had this pad for 3 days and I'm a bit frustrated. I've noticed that the backspace key goes haywire in almost all third party apps but it also happens when I type email, calendar , events, and notes. The only way I can stop this from happening is to hit the spacebar multiple times or any other key on board. I am not new to Apple products as I have had several iPhones, iPod touches, and I had a Mac Book Pro for work. I have searched the communities and saw that this was an issue with earlier iPhones but I have not read anything to iPad 2. Any helpful assistance you can provide is appreciated.
I assume that you know if you hold down on the delete/back space key that it picks up speed and will rapidly delete sections of text as opposed to one letter at a time.
If you have restarted and reset (hold down the sleep and home buttons until the Apple logo appears) and have had no success, I can only suggest closing apps. Go to the home screen and double tap the home button to bring up your recent apps at the bottom. Tap and hold down on any app icon until they all wiggle. Tap the minus signs on the apps to close them. Close every app in the task bar. Tap the screen above the task bar and then restart the iPad.
I have no idea if this will help, but it can't hurt to try it. If your iPad is only three days old, I would also suggest a call to technical support. You get 90 days of phone support when you buy an iPad.
http://www.apple.com/support/ipad/contact/ -
Backspace Key stopped working normally on Macbook Pro
Hello,
I was able to use my backspace/return key totally fine by just pressing it and it would go back a space. One day i start my laptop up and i am not able to go back anymore, absolutely nothing happens when i press my backspace key, i now have to press fn+backspace in order to use the normal backspace option of deleting one letter or several letters that i have just typed. It doesn't seem to be a hardware issue as the backpace is now fn+backspace, how do i get it to go back to normal as it is tres annoying to press two keys for this? Any help is much appreciated.Create another user account on the computer and see if it behaves the same way. If it does then it's probably a hardware issue, if it doesn't then it's software and most likely a setting that has changed.
Maybe you are looking for
-
Please provide a well thought of answer that is constructive to the error that is posted in its entirety below: Before you post a reply, please note that I have already done the following, reinstalled software, contacted tech support for the software
-
No Audio to FCP from digital 8 camera?
I've set up my new Imac with FCP and want to log and capture from my Digital 8 camcorder by way of firewire. The video is runnning in the capture window I have full camera control from my mouse but no audio. I think my audio settings are correct. Any
-
Hello. I have a WRT160N v2, and I was wondering if I could change the name of the router so it won't show up as WRT160N in network under windows. Is that even possible? Thanks!
-
RAID 5 Set Suddenly NOT VIABLE!
I'm running an early 2008 Mac Pro with an Apple Raid Card with 4 internal, 1TB drives formatted into a single Raid 5 set. The raid card has had numerous issues in recent years, mainly drives that would unexpectedly drop out of the Raid and list as "r
-
Radius Authentication - Reauthentication via Accounting logs
Hi, we'r working on a scenario like this; Client logs in to an WLAN via dot1x authentication, though we want to be able to disable re-authentication of the client on the radius when the session-timeout is reached. We also need the accounting logs to