use super::hotkeys::{Hotkey, HotkeyHandler};
use crate::error::{RdesktopError, Result};
use std::sync::Arc;
pub struct MacHotkey {
_handler: Arc<dyn HotkeyHandler>,
}
impl MacHotkey {
pub fn start(handler: Arc<dyn HotkeyHandler>) -> Result<Self> {
let _ = handler;
Err(RdesktopError::UnsupportedPlatform(
"global hotkeys on macOS require a CGEventTap implementation (pending macOS build)".into(),
))
}
pub fn register(&self, _id: u32, _hotkey: &Hotkey) -> Result<()> {
Ok(())
}
pub fn unregister(&self, _id: u32) -> Result<()> {
Ok(())
}
pub fn stop(self) {}
}