[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:
Code:
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