Module GlobalHotKeys
In: globalhotkeys.c
KeyBinder globalhotkeys.c Modifier GlobalHotKeys dot/m_0_0.png

rghk provides a simple way to set global hotkeys.

Example:

  kb=GlobalHotKeys::KeyBinder.new
  kb.bind(Gdk::Keyval::GDK_a,  GlobalHotKeys::Modifier::CONTROL_MASK){puts 'Binded'}
  kb.unbind

It probably a good idea to require ‘gtk2’ before ‘rghk’. The librairy rghk was not tested without ruby/gtk2.

Classes and Modules

Module GlobalHotKeys::Modifier
Class GlobalHotKeys::KeyBinder

[Validate]