What specifically are you trying to accomplish? When you say 'system level,' do you mean even when your app doesn't have the focus? If you're just try to create accelerators, see
though I BELIEVE that only works on Windows.
yea I meant even when the app itself doesn't have focus. for example, pressing a certain key combination would bring the app to focus, etc.
Is this going to be implemented?
bump for justice
Global hot keys are not currently supported in Adobe AIR. If you or anyone else would like to see this in a future release, please let us know by submitting a feature request.
I don't this it's possible with Adobe AIR itself. The only method I can think of:
- Install 3rd party hotkey application (like AutoHotkey or HotKeyBind)
- Configure hotkey application to make CTRL+ALT+Q to launch "
c:\programs\thvo42\coolapp.exe --hotkey q"
- In your AIR application, register for the NativeApplication.invoke event, and watch for arguments like '--hotkey q' to know that the Q hotkey was pressed, and then act accordingly.
Of course, this is kind of a hassle, maybe with some hacking you can roll it all into a single install file.
The key thing about invoke is: "When an application is invoked a second time, another instance of the application is not started. Instead, the first instance receives an additional invoke event." (Source: Adobe AIR docs linked above)
please log a features request at http://ideas.adobe.com/air