[CLOSED] KeyMap

  1. #1

    [CLOSED] KeyMap

    Hi,

    I use a keymap Ctrl+N to open an Ext Window. It works well with FF, IE but Google Chrome.

    Do you have any advice?

    Thanks in advance.
    Last edited by Daniil; Jun 20, 2014 at 6:11 AM. Reason: [CLOSED]
  2. #2
    Hi @tad,

    Yes, there is always a problem with short keys that are used by a browser. Please provide a test case. Maybe, there is a possibility to do something.

    By the way, many UI specialists deem that overriding the default behavior of preserved short keys might be not a good idea.
  3. #3
    Hi Daniil,

    Here is the test case: just press Ctrl+N

        @(Html.X().KeyMap()
            .Target("={Ext.isGecko ? Ext.getDoc() : Ext.getBody()}")
                    .Binding(b => b.Add(Html.X().KeyBinding()
                .Ctrl(true)
                        .Handler("App.WndTest.show();")
                .KeysString("N")
                .DefaultEventAction(EventAction.PreventDefault))))
        )
    
    
        @Html.X().Window().Modal(true).Width(200).Height(200).Title("Test").ID("WndTest").Hidden(true).CloseAction(CloseAction.Hide).Html("Ctrl+N")
    Last edited by geoffrey.mcgill; Jun 20, 2014 at 5:24 AM.
  4. #4
    Thank you, I have reproduced.

    I found this:
    http://stackoverflow.com/questions/7...cuts-ctrlt-n-w

    The guy says:
    In Chrome4, certain control key combinations have been reserved for browser usage only and can no longer be intercepted by the client side JavaScript in the web page.
    Ctrl+N appears to be a reserved short key.
  5. #5
    Quote Originally Posted by Daniil View Post
    Thank you, I have reproduced.

    I found this:
    http://stackoverflow.com/questions/7...cuts-ctrlt-n-w

    The guy says:


    Ctrl+N appears to be a reserved short key.
    Hi Daniil,

    Thank you. You can close the topic

Similar Threads

  1. Keymap don't run with TreePanel
    By xcream in forum 2.x Help
    Replies: 3
    Last Post: Oct 28, 2013, 2:25 PM
  2. [CLOSED] KeyMap on PopupWindow
    By elke.schreiber in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 09, 2013, 2:28 PM
  3. [CLOSED] Ext 2.1.1 Razor and KeyMap
    By jphms in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 04, 2013, 12:33 AM
  4. [CLOSED] How to use new keymap in
    By xeo4.it in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 25, 2012, 3:30 PM
  5. Replies: 6
    Last Post: Sep 04, 2012, 12:59 PM

Posting Permissions