[CLOSED] Keymap key code

  1. #1

    [CLOSED] Keymap key code

    <Keys>             
                    <ext:Key Code="BACKSPACE"/> 
                         
    </Keys>
    How can we change above code to listen ALT+F4 key pressed?
    Last edited by Daniil; Dec 27, 2010 at 7:00 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please look at the example.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:KeyMap runat="server" Target="={Ext.isGecko ? Ext.getDoc() : Ext.getBody()}">
            <ext:KeyBinding Alt="true" StopEvent="true">
                <Keys>
                    <ext:Key Code="F4" />
                </Keys>
                <Listeners>
                    <Event Handler="alert('Alt+F4')" />
                </Listeners>
            </ext:KeyBinding>
        </ext:KeyMap>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] GridPanel KeyMap
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 26, 2012, 1:43 PM
  2. [CLOSED] Disable KeyMap Events
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 22, 2012, 6:43 AM
  3. [CLOSED] KeyMap Problem
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Mar 01, 2012, 12:27 PM
  4. [CLOSED] KeyMap and IE
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 06, 2011, 2:48 PM
  5. [CLOSED] Inherit KeyMap
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 15, 2009, 10:59 AM

Tags for this Thread

Posting Permissions