1use keybind::{Keybind, Keycode}; 2 3fn main() { 4 let mut keybind = Keybind::new(&[Keycode::LControl, Keycode::G]); 5 6 keybind.on_trigger(|| { 7 println!("This will be printed when you press CTRL+G"); 8 }); 9 10 keybind.wait(); 11}