Disable Backspace Key

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/

Similar Messages

  • 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.

  • 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

  • Backspace key disable

    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.

  • 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.3

    Hi
    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?
    John

    The 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/

  • How can I disable a key through software?

    A friend of mine spilt water on her keyboard. As a result, her forward slash key frequently spams and makes typing difficult. I used a program to remap the forward slash key to a forward delete key, but that has also caused problems. What I'm looking for is a program that will allow me to completely disable a key.
    I should note, I've used KeyRemap4Macbook and I've also developed my own code, which disables the key on Cocoa applications. However, the key still spams on applications like Microsoft Word.
    Her Macbook is more than a year old, and she can't afford to buy a new one.
    Any suggestions?

    Liquid in a physical keyboard is great trouble. You may worsen state if you continue to use it like this, make the effort to change it. It is not cheap, but may prove cheaper than damage the whole computer.

  • My backspace key delete two characters in Firefox.

    My backspace key delete two characters in Firefox. How may I solve this problem?
    It works in other programs such as Office well. My OS is WIN7.
    Please help me.

    Application Basics
    Name: Firefox
    Version: 29.0
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
    Crash Reports for the Last 3 Days
    All Crash Reports (including 1 pending crash in the given time range)
    Extensions
    Name: Adblock Plus
    Version: 2.6
    Enabled: true
    ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
    Name: IDM CC
    Version: 7.3.73
    Enabled: true
    ID: [email protected]
    Name: Right Inbox
    Version: 1.0
    Enabled: true
    ID: {eb692b9a-0dce-45fa-b0e6-765d83e386bd}
    Name: Adobe Acrobat - Create PDF
    Version: 1.0
    Enabled: false
    ID: [email protected]
    Name: PDF Architect Converter For Firefox
    Version: 1.0
    Enabled: false
    ID: [email protected]
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 6
    browser.sessionstore.upgradeBackup.latestBuildID: 20140421221237
    browser.startup.homepage: www.google.com
    browser.startup.homepage_override.buildID: 20140421221237
    browser.startup.homepage_override.mstone: 29.0
    dom.mozApps.used: true
    extensions.lastAppVersion: 29.0
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1399615634
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.sanitize.migrateFx3Prefs: true
    storage.vacuum.last.index: 0
    storage.vacuum.last.places.sqlite: 1399534769
    Graphics
    Adapter Description: ATI Mobility Radeon HD 5470
    Adapter Drivers: atiu9p64 aticfx64 aticfx64 atiu9pag aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
    Adapter RAM: 1024
    ClearType Parameters: Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 300
    Device ID: 0x68e0
    Direct2D Enabled: Blocked for your graphics driver version. Try updating your graphics driver to version 10.6 or newer.
    DirectWrite Enabled: false (6.1.7600.16385)
    Driver Date: 1-22-2010
    Driver Version: 8.692.1.0
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 9
    Vendor ID: 0x1002
    WebGL Renderer: Google Inc. -- ANGLE (ATI Mobility Radeon HD 5470 Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: skia
    AzureContentBackend: cairo
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.3
    Version in use: 4.10.3
    NSS
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSSL
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16
    Version in use: 3.16

  • Loose backspace key

    Hi, this seems to be my fourth or fifth problem with my MacBook (I hope there aren't any more) but my backspace key seems to be worryingly loose. Is this the same on every MacBook?

    No. Have it looked at if it's in warranty. The keyboard may need to be replaced.
    If you've had a lot of problems with your MacBook (three or more repairs), call Apple Customer Relations and see if you can get the computer replaced. I got mine replaced after three repairs.
    -Bmer
    Mac Owners Support Group - Join us @ MacOSG.com
      Mac611 Mobile Mac Support - about.Mac611.com
       iTunes:MacOSG Podcast | YouTube.MacOSG.com
                       An Apple User Group 
    Have an iPhone or iPod touch? Enter Mac611.com in Safari on it for 'mobile Mac support.'

  • Rebinding Backspace Key

    Is there anyway to rebind the backspace key so that it does something else other than what it is supposed to do (i.e. delete the character before the current carat position). I've tried doing the inputMap()/actionMap() method to rebind and it fails to stop backspace from deleting the character before the current carat position.

    A much easier way of not deleting is to use a custom Document, but I assumed you wanted delete to still work correctly. I found [url http://forum.java.sun.com/thread.jsp?forum=31&thread=304562]this and tried it and it worked. I have no idea why.import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test extends JFrame {
      boolean consume;
      public Test() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container content = getContentPane();
        JTextField jtf = new JTextField("Something");
        jtf.addKeyListener(new KeyAdapter() {
          public void keyPressed(KeyEvent ke) {
            if (ke.getKeyCode()==KeyEvent.VK_BACK_SPACE) consume=true;
          public void keyTyped(KeyEvent ke) {
            if (consume) {
              ke.consume();
              consume=false;
        content.add(jtf, BorderLayout.NORTH);
        setSize(100, 100);
        setVisible(true);
      public static void main(String[] args) { new Test(); }
    }

  • Backspace key doesn't work during install

    I'm installing Oracle 10.2.0 under Solaris 10 05/08 I'm using PuTTY 0.6.0 and Cygwin as my X server. In the Oracle install windows, my backspace and delete keys do not work. They work fine everywhere else.

    hi jnojr
    what about making executing the following command in your shell before starting the runInstaller:
    stty erase <backspace key>
    stty delete <delete key>
    please read that document: http://www.acm.uiuc.edu/workshops/cool_unix/stty.html
    Read that also:
    http://www.linuxdocs.org/HOWTOs/Keyboard-and-Console-HOWTO-5.html
    check your settings
    #stty -a
    What is the result of that command?
    If the issue is only on x11 then try that:
    Backspace key to generate a BackSpace:
    % xmodmap -e "keycode 22 = BackSpace"
    Delete key to generate a Delete:
    % xmodmap -e "keycode 107 = Delete"
    this should fix your issue.
    regards,
    hub
    Edited by: Hub on Sep 2, 2008 3:43 PM

  • 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

  • Error when using File protocol

    Hi, I have set up ACME (Host) and Vision (TP) to send an xml file using "Custom Document over Generic Exchange". I post a file to the inbound queue using the tutorial shell script. The file shows up in the /tmp/b2b directory that I set up. However, i

  • Oracle RESULT_CACHE new features 11g

    Hello folks ! One question about this new func of 11g : RESULT_CACHE. I understand it permit to keep in sga a RESULT_CACHE_MAX_SIZE quantity (bytes) of resultset retrieved from sql query. But, what the difference with this and CURSOR_SHARING set on E

  • Premiere Pro CC 2014 keeps freezing when loading projects from Premiere Pro CC

    Hi everyone, I'm reporting this issue in case someone else would have the same problem. I just downloaded the 2014 version of Premiere Pro CC, and when I'm loading a project from Premiere Pro CC into CC2014 I have the software freezing and being unab

  • Should my UL behave like this?

    Ok this is not really a "problem question" but more of a general "is this element behaving correctly?" question.. I have created a new masthead section for my site, and have used a right-floated UL called "rightlist" with a background image. The UL u

  • Disable vertical movement of the caret in a JTextArea

    Hello all, I have a JTextArea where the user should be able to edit only the last (current) line. Whenever the user presses CURSOR_UP, the caret shouldn't move. Moving the caret to the left and right should be possible. Could anyone give me a hint, w