[tomboy-list] How does the global keyboard shortcut work?

Hamlet D'Arcy hamletdrc at gmail.com
Wed Aug 4 11:55:40 PDT 2010


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.

Here is my assumption: native code is used to examine the event
queue/keyboard input. There is now way for Ubuntu apps to "declare"
interest in a key combo and later get a callback without writing
native code to do it themselves.

Is that a correct assumption?

Thanks, and sorry if this is slightly off topic.

-- 
Hamlet D'Arcy
hamletdrc at gmail.com


More information about the Tomboy-list mailing list