{"id":13546994,"url":"https://github.com/tauri-apps/global-hotkey","last_synced_at":"2025-12-12T15:01:53.885Z","repository":{"id":65325739,"uuid":"577504315","full_name":"tauri-apps/global-hotkey","owner":"tauri-apps","description":"Global hotkeys for Desktop Applications.","archived":false,"fork":false,"pushed_at":"2024-10-13T00:03:02.000Z","size":191,"stargazers_count":140,"open_issues_count":10,"forks_count":17,"subscribers_count":10,"default_branch":"dev","last_synced_at":"2024-10-29T15:44:11.618Z","etag":null,"topics":["global-hotkeys","gui","hotkeys","rust","windowing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tauri-apps.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-12T22:09:56.000Z","updated_at":"2024-10-28T03:43:01.000Z","dependencies_parsed_at":"2023-10-16T11:55:58.077Z","dependency_job_id":"df0ca5e9-49e5-43f8-9d0f-c518704d061c","html_url":"https://github.com/tauri-apps/global-hotkey","commit_stats":{"total_commits":99,"total_committers":14,"mean_commits":7.071428571428571,"dds":0.5555555555555556,"last_synced_commit":"f6dafbc03d706f996671b12c08b5685150eee76d"},"previous_names":["amrbashir/global-hotkey"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fglobal-hotkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fglobal-hotkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fglobal-hotkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fglobal-hotkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tauri-apps","download_url":"https://codeload.github.com/tauri-apps/global-hotkey/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246605117,"owners_count":20804177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["global-hotkeys","gui","hotkeys","rust","windowing"],"created_at":"2024-08-01T12:00:49.266Z","updated_at":"2025-12-12T15:01:53.524Z","avatar_url":"https://github.com/tauri-apps.png","language":"Rust","funding_links":[],"categories":["Rust","Libraries"],"sub_categories":[],"readme":"global_hotkey lets you register Global HotKeys for Desktop Applications.\n\n## Platforms-supported:\n\n- Windows\n- macOS\n- Linux (X11 Only)\n\n## Platform-specific notes:\n\n- On Windows a win32 event loop must be running on the thread. It doesn't need to be the main thread but you have to create the global hotkey manager on the same thread as the event loop.\n- On macOS, an event loop must be running on the main thread so you also need to create the global hotkey manager on the main thread.\n\n## Example\n\n```rs\nuse global_hotkey::{GlobalHotKeyManager, hotkey::{HotKey, Modifiers, Code}};\n\n// initialize the hotkeys manager\nlet manager = GlobalHotKeyManager::new().unwrap();\n\n// construct the hotkey\nlet hotkey = HotKey::new(Some(Modifiers::SHIFT), Code::KeyD);\n\n// register it\nmanager.register(hotkey);\n```\n\n## Processing global hotkey events\n\nYou can also listen for the menu events using `GlobalHotKeyEvent::receiver` to get events for the hotkey pressed events.\n\n```rs\nuse global_hotkey::GlobalHotKeyEvent;\n\nif let Ok(event) = GlobalHotKeyEvent::receiver().try_recv() {\n    println!(\"{:?}\", event);\n}\n```\n\n## License\n\nApache-2.0/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Fglobal-hotkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftauri-apps%2Fglobal-hotkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Fglobal-hotkey/lists"}