cfg out globalhotkey

This commit is contained in:
Jonathan Kelley committed 2024-03-06 16:42:45 -08:00
1 parent f7f416ee3a
commit 81f38a0bc5
11 files changed
+37 -26

No files matched your search

+2 -2
View File
@@ -1,11 +1,11 @@
use global_hotkey::GlobalHotKeyEvent;
use serde::{Deserialize, Serialize};
use tao::window::WindowId;
#[derive(Debug, Clone)]
pub enum UserWindowEvent {
/// A global hotkey event
GlobalHotKeyEvent(GlobalHotKeyEvent),
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
GlobalHotKeyEvent(global_hotkey::GlobalHotKeyEvent),
/// Poll the virtualdom
Poll(WindowId),