iDave
17 Jul 2008, 12:34 PM
Since, the Ext air api, doesn't allow to set an accelerator or "keyEquivalent" (in air language), I've added just a line of code in ext.air.js, after line 1630:
nativeItem.keyEquivalent = cfg.key;
so, now I'm able to set my accelerators in this way:
var appMenu = Ext.air.SystemMenu;
appMenu.add("File", [
{text: "New foo", handler: myHandler, key: "n"}
]);
...nothing of special, but I hope is helpful for someone ;)
nativeItem.keyEquivalent = cfg.key;
so, now I'm able to set my accelerators in this way:
var appMenu = Ext.air.SystemMenu;
appMenu.add("File", [
{text: "New foo", handler: myHandler, key: "n"}
]);
...nothing of special, but I hope is helpful for someone ;)