Hello,
I'm currently trying to built a little Air Application where I want to set the normal Command-C key to call a function? Is this even possible to use a standard Menu Command?
function createMenu():NativeMenu{
var menu:NativeMenu = new NativeMenu();
var menuOneCommand: NativeMenuItem = menu.addItem(new NativeMenuItem("Menu 1"));
menuOneCommand.keyEquivalent = "C"; //Command Shift C
menuOneCommand.addEventListener(Event.SELECT, myfunction);
return menu;
}
Moreover I would love to know how i can call a function (myfunction) which is actually a MouseEvent Handler?
function myfunction(e:MouseEvent = null) { trace('Throws Errors at the moment')}
Thank you for your help!