I am trying to detect the key down event for the alt key in flex. I have a standard event listener for KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP but don’t get any response for the alt key (or ctrl key).
I know I can detect if the alt key was pressed via a mouse event, but I want to update the cursor when the alt key is pressed to show it will perform a different action from when it’s not pressed.
I am using Safari on a Mac for developing so let me know if perhaps it’s an isolated issue.
As stef pointed out it seems to be a bug in Safari.
This may be rectified using JavaScript to pass the events onto Flash, although I am not sure the JavaScript will get them if the flash movie has the focus.
Here are some examples of how to do this:
javascript to actionscript keypress passing utility?