cfg out globalhotkey
This commit is contained in:
11 files changed
+37
-26
No files matched your search
@@ -64,6 +64,7 @@ impl ShortcutRegistry {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
|
||||
pub(crate) fn call_handlers(&self, id: GlobalHotKeyEvent) {
|
||||
if let Some(ShortcutInner { callbacks, .. }) = self.shortcuts.borrow_mut().get_mut(&id.id) {
|
||||
for (_, callback) in callbacks.iter_mut() {
|
||||
|
||||
Reference in new issue
Block a user