Displaying a context menu via hotkey crashes AIR
I love hotkeys and I try to build them into all of my apps. They greatly improve the desktop app experience, especially for the anti-mouse crowd. I recently thought of a handy way of using a hotkey—display a context menu upon pressing the spacebar with an item selected. This feature would be so sweet… if it worked.
I quickly typed up the implementation and tried it. Expecting to see a context menu, I was dumbfounded to see ADL crash without a single RTE stack trace. Here’s an example of the code that causes the crash every time:
At first, I thought it might be an ADL issue, so I compiled the AIR file, installed it, and the insanity continued. Instead of crashing instantly as the app did running on ADL, it first displayed this alert:

Let me known, I’m running the most recent build of AIR. Upon clicking ‘OK’, the app quits. I can run the app all day and a soon as I trigger the context menu to display, this alert appears. I checked the Console and found this:
I also added the full crash reports in the Gist. I’m not sure what it all means, but I filed the bug with Adobe and can only hope it’s fixed sooner than later—this feature would be too cool.