[CLOSED] Problem with backspace key

  1. #1

    [CLOSED] Problem with backspace key

    Hello guys

    I have login page and after user signed in page will be redirected to base ext:Desktop page.
    When user press backspace it is return to login page. It's problem.
    I added code for disable BACKSPACE
    <ext:KeyMap ID="KeyMap1" runat="server" Target="={Ext.isGecko ? Ext.getDoc() : Ext.getBody()}">
            <ext:KeyBinding StopEvent="true">
                <Keys>
                    <ext:Key Code="BACKSPACE" />
                </Keys>
                <Listeners>
                    <Event Handler="Ext.Msg.alert('Message', 'Backspace is currently disabled for this application');" />
                </Listeners>
            </ext:KeyBinding>
        </ext:KeyMap>
    but now I cannot use this key in any input control.
    How enable this key for editable controls? Or maybe I can disable Backspace different way for whole solution.
    Last edited by Daniil; Apr 21, 2011 at 12:27 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You could remove StopEvent="true" and add respective logic in Handler.

    To stop event manually:
    <Event Handler="e.stopEvent(); ...">
    To get an event's target:
    <Event Handler="var t = e.getTarget(); ...">
  3. #3
    Hi,

    BackSpace is hot key in browsers which equivalent for Back navigation button
    I am not sure about good solution to disable it. How do you solve the same problem for the application without Ext.Net (you will have the same problem also if Ext.Net is not presented in your aplication) ?
  4. #4
    Thanks Daniil for your prompt answer.
    Your workaround works for me.

    to Vladimir...
    I know it is not problem of Ext

    thanks guys.

Similar Threads

  1. [CLOSED] TextField KeyPress handler for the Backspace key
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Mar 15, 2012, 1:01 PM
  2. [CLOSED] [1.1] Prevent backspace on readonly field on ie
    By John_Writers in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 10:29 AM
  3. [CLOSED] Multiheader Filter – Backspace key problem
    By inspq in forum 1.x Legacy Premium Help
    Replies: 19
    Last Post: Apr 07, 2011, 12:35 PM
  4. [CLOSED] Backspace
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 25, 2011, 2:41 PM
  5. [CLOSED] TextField SpecialKey Submit and Enter/Backspace
    By macap in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 28, 2010, 4:20 PM

Tags for this Thread

Posting Permissions