add an event handler to your app to trap a key down event and then
check for the combinations you support as shortcuts and perform the
your functions accordingly.
here's a fragment from my own code which traps ctrl+shift+D and shows
some debug messages...
in my app's initialisation routine...
addEventListener(KeyboardEvent.KEY_DOWN, watchKey);
private function watchKey(e:KeyboardEvent):void
{
if (e.ctrlKey && e.shiftKey)
{
if(e.keyCode == 68)
{
toggleDebug();
}
}
}
this is all in the docs...
Simon
--- In [email protected], "Alejandro Narancio"
<[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> I am trying to add a shortcut to my application (for example when
the user
> press Ctrl+P open a print dialog), it is possible to catch this? I
mean to
> make custom shortcuts for my application?
>
> I will appreciate any suggestion or guideline.
>
> thanks!
> Alejandro
>