[CLOSED] Remove Key Esc to close Window

  1. #1

    [CLOSED] Remove Key Esc to close Window

    Hi, How Can I do to remove the event to close a ext:Window with the key escape?

    Thank you
    Last edited by Daniil; Feb 20, 2014 at 7:05 AM. Reason: [CLOSED]
  2. #2
    You can override the functionality of the Esc key by setting the .OnEsc property of Window with "Ext.emptyFn".

    http://docs.sencha.com/extjs/4.2.2/#...ndow-cfg-onEsc

    But, I discovered a problem with how that value is rendered. I have committed the fix to Svn. This fix will be available in the upcoming Ext.NET 2.5 release.

    You can work-around the problem by setting the following "XOnEsc" property on your <ext:Window> component.

    <ext:Window runat="server" XOnEsc="Ext.emptyFn" />
    If you update from Svn, or use the Ext.NET 2.5 (or newer) release, then you can remove the "X" and just use .OnEsc.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    You can override the functionality of the Esc key by setting the .OnEsc property of Window with "Ext.emptyFn".

    http://docs.sencha.com/extjs/4.2.2/#...ndow-cfg-onEsc

    But, I discovered a problem with how that value is rendered. I have committed the fix to Svn. This fix will be available in the upcoming Ext.NET 2.5 release.

    You can work-around the problem by setting the following "XOnEsc" property on your <ext:Window> component.

    <ext:Window runat="server" XOnEsc="Ext.emptyFn" />
    If you update from Svn, or use the Ext.NET 2.5 (or newer) release, then you can remove the "X" and just use .OnEsc.

    Hope this helps.

    Thank you, this is working.

Similar Threads

  1. Replies: 0
    Last Post: Oct 24, 2012, 12:20 PM
  2. [CLOSED] how to close window after click button in this window
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 22, 2012, 2:48 PM
  3. [CLOSED] How to remove 'X' (window close) for popup window?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 31, 2011, 3:50 AM
  4. [CLOSED] Problem to close Window which has another Window inside
    By asztern in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 21, 2010, 5:33 PM
  5. Replies: 1
    Last Post: Apr 01, 2009, 12:24 PM

Tags for this Thread

Posting Permissions