I want to be able to capture Ctrl + another key.
How do I do this?
I’ve got the following code from help:
var keyListener:Object = new Object();
keyListener.onKeyDown = function()
{
trace("DOWN -> Code: “+Key.getCode()+” ACSII: “+Key.getAscii()+” Key: "+chr(Key.getAscii()));
};
Key.addListener(keyListener);
But I can’t seem to be able to capture key combinations like Ctrl + another key.
For what I need to do, I really need to capture several key combinations.
At the very least, I want to be able to capture Ctrl + another key.
Any help would be appreciated.
Thanks.
OM