[FIXED] [#1466] [4.3.0] Keymap in gridpanel not working

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [FIXED] [#1466] [4.3.0] Keymap in gridpanel not working

    Are there any gotchas that would cause a keymap declaration inside a gridpanel to not work, i.e. The key press doesn't trigger the JavaScript function.

    I am talking about something like this:
    public class UserAdminAppWindow: Window
        {
            
            public UserAdminAppWindow() : base()
            {
                Title = "AdminTool";
                Icon = ext.Icon.User;
                Layout = "BorderLayout";
                ItemID = "userAdminAppWindow";
    
                var userGridPanel = new UserGridPanel() { Split = true };
    
    
    
                Items.Add(new ItemCollection()
                        {
                         new UserSearchWindow()
                            {
                                Hidden = true,
                                Modal = true,
                                ItemID = "userSearchWindow"
                            },
                            new UserEditFormWindow()
                            {
                                Hidden = true,
                                Modal = true,
                                ItemID = "userEditFormWindow"
                            },
                            userGridPanel,
                            new UserPermissionsDetailPanel(),                       
                        });
    
                KeyMap = new KeyMap()
                {
                    ItemID = "userAdminAppWindowKeyMap",
    
                    Target = "={Ext.isGecko ? Ext.getDoc() : Ext.getBody()}",
                    Binding =
                    {
    
                        new KeyBinding()
                        {
                        DefaultEventAction = EventAction.StopEvent,
                        Handler = "debugger;this.down('#userSearchButton').fireEvent('click')",
                        Keys =
                                {
                                    new Key() { Code = KeyCode.J }
                                }
                        }
                    }
                };
            }
        }
    When you declare a keymap as a property of a component does it explicitly take care of setting the target?

    Thanks
    Last edited by fabricio.murta; Aug 10, 2017 at 2:17 AM.

Similar Threads

  1. Replies: 6
    Last Post: Sep 04, 2012, 12:59 PM
  2. [CLOSED] KeyMap inside Panel not working
    By Fredrik in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2012, 1:51 PM
  3. [CLOSED] Tooltip and KeyMap is not working on htmlEditor
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2010, 8:20 AM
  4. [CLOSED] KeyMap in Panel not working in mozilla
    By klavsm in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 17, 2010, 10:19 AM
  5. KeyMap not working for whole window
    By dbassett74 in forum 1.x Help
    Replies: 3
    Last Post: May 21, 2009, 1:55 PM

Posting Permissions