views:

24

answers:

0

Hi there,

This boils down to being able to listen to key presses when the application doesn't have the focus. I've tried adding listeners to both stage and NativeApplication, but when the app is minimized it doesn't seem to listen to key events.

Any idea how this could be achieved?

Just for the record, I'm trying to implement an app that behaves in the way Spotlight does. It runs on the background and it appears to the user after a keyboard shortcut combination.

If this is not possible, I think I would have to use some sort of helper app to listen to the keys and pass them on to the AIR app via NativeProcess, but it seems a little bit too complicated.

I'm planning to get this working on AIR 2 beta in at least Win and Mac.

Thanks.

J