Reputation: 1
I'm developing an AIR application in Flash CS5.5 using ActionScript 3. The user must be able to use function keys F1-F10 for custom app-specific functions. They all work great, except F10. I can detect keyUp and keyDown for F10 just fine, but when F10 is released, the application menu receives focus and the app ignores subsequent function key presses until either a)F10 is pressed again, or b)a non-function key is pressed. This happens whether or not I've added a new NativeMenu (I'd prefer the app to NOT have one).
Is there a way to either,
Upvotes: 0
Views: 434
Reputation: 17217
It's possible to create you own completely custom menu without relying on the default menu items and adding to them, which is what you might have to do in this situation.
You could try preventing the default event from firing on mouse up, but that's a bit of a ghetto/hack solution if it even works so i would suggest that instead you build your own native menu items from scratch. basically it's the same thing as what you are doing, except you have to first remove all the default menu items ("File", "Edit", etc.) and optionally replace them with your own default items.
Upvotes: 1