问题
I need to enable alt-<key> selection semantics for some Buttons in my application. If I write KeyDownEventListener for the Button, its not getting triggered when I press ALT key in the keyboard. Is there any way to enable alt key semantics for the buttons?
Thanks in advance
回答1:
KeyboadEvent class has an altKey property that you can use to check if Alt key was held-down while the current key was pressed.
来源:https://stackoverflow.com/questions/1789609/problem-while-capturing-alt-key-event-in-flex