[tomboy-list] How does the global keyboard shortcut work?
sanfordarmstrong at gmail.com
Wed Aug 4 13:30:26 PDT 2010
On Wed, Aug 4, 2010 at 11:55 AM, Hamlet D'Arcy <hamletdrc at gmail.com> wrote:
> Hi all,
> I am a happy Tomboy user and really like the global Ubuntu keyboard
> shortcut I can use to create a new note.
> My question is about how technically the global key listener works. I
> got the TomBoy source code and see tomboykeybinding.c, but I have no
> experience with native Ubuntu code, so it isn't much help to me.
It's the XGrabKey part that actually does the keybinding.
If you'd explain a bit more about what you actually want to do, we
could probably help. You can certainly use libtomboy in your project;
it's very popular for other projects to use it when they need to
perform global keybindings, and it's released under the very liberal
You can see an example of its use in managed code by looking at
More information about the Tomboy-list