[Glade-users] system wide hotkeys (keyboard shortcut)



There are a few layers I think where one can register for keyboard
events...

  - /sbin/init (/etc/inittab) owner of all terminals... responsable for 
calling
    a shutdown script when cntl-alt-del is hit
  - X server: I dont know how... but there is certainly a mechanism here to
    recieve all keyboard events from the running server (assuming it's 
console
    is currently active)
  - The window manager usually has mechanisms to map shortcuts to common
    window manager stuff (i.e. here you might make alt-F4 kill your 
focused application).
  - The X client application... usually an X client's place is to only 
recieve keyboard
    events that are sent to its X windows.

Cheers,
                               -Tristan




thanks for the help. but i was hoping for something more specific. i got to the
same point where i was "guessing" that it was either x11, or gnome itself
(window manager or nautilus or whatever), etc. the thing is that so far i
couln't find anything.
from what i gather there aren't any API on either GTK, or gnome that will
provide this, right?

A story: A man fires a rifle for many years; And he goes to war. And afterward he turns the rifle in at the 
armoury; And he believes he's finished with the rifle. But no matter what else he might do with his hands, 
love a woman, build a house, change his son's diaper; His hands still remember the rifle. -- Jarhead

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]