Module | GlobalHotKeys |
In: |
globalhotkeys.c
|
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.