We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is my code:
use global_hotkey::{ hotkey::{Code, HotKey, Modifiers}, GlobalHotKeyEvent, GlobalHotKeyManager, }; fn main() { // initialize the hotkeys manager let manager = GlobalHotKeyManager::new().unwrap(); // construct the hotkey let hotkey = HotKey::new(Some(Modifiers::SHIFT | Modifiers::CONTROL), Code::KeyV); // register it manager.register(hotkey).unwrap(); let received = GlobalHotKeyEvent::receiver().recv().unwrap(); println!("{:?}, {:?}", received.id, hotkey.id()); }
run it and nothing happend
OS version: 12.1
The text was updated successfully, but these errors were encountered:
did you try the examples in the repo? you need an event loop to get the events.
Sorry, something went wrong.
eframe
No branches or pull requests
Here is my code:
run it and nothing happend
OS version: 12.1
The text was updated successfully, but these errors were encountered: