I have an application written in Java and I would like to install a truly global keyboard handler. For instance, I want Ctrl+Alt+Whatever to translate into a "New Document" command in my app. This should happen even if my app does not have focus or is minimized to the system tray.
I know that TomBoy Notes on Ubuntu has this behavior, but I believe it is implemented using the Ubuntu key registry. Omni-Focus on the Mac does this, and I assume it is native code watching the windows event loop.
To my knowledge, this is not possible in a pure Java solution. Is that true? Is there a cross platform way to implement a global keyboard handler as described?