hotkey 0.3.1

Register global hotkeys
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use hotkey;

fn main() {
    let mut hk = hotkey::Listener::new();
    hk.register_hotkey(
        hotkey::modifiers::CONTROL | hotkey::modifiers::SHIFT,
        'A' as u32,
        || println!("Ctrl-Shift-A pressed!"),
    )
    .unwrap();

    hk.listen();
}