Question
Can't detect control-a
Is there any way to detect when control-a or control-c is pressed (that is, hold down control key, press A key). The following code to detect a control-7 works fine:
function myOnKeyDown() {
// 55 is key code for 7
if (Key.isDown(Key.CONTROL) && Key.getCode() == 55) {
Selection.setFocus(my_btn);
my_btn.onPress();
}
}
but if you change it to "== 65", it never fires. I've also found if I collect and log all keystrokes with an onKeyDown listener, the control keys (code 17) always register, but the following letter never does.
Help! Thanks!
David
p.s. no, I don't think this is a Disable Keyboard Shortcuts issue. The same problem occurs whether I'm in the flash environment or in a browser.