pub trait GlobalShortcutManager: Debug + Clone + Send + Sync {
    fn is_registered(&self, accelerator: &str) -> Result<bool>;
    fn register<F: Fn() + Send + 'static>(
        &mut self,
        accelerator: &str,
        handler: F
    ) -> Result<()>; fn unregister_all(&mut self) -> Result<()>; fn unregister(&mut self, accelerator: &str) -> Result<()>; }
Expand description

A global shortcut manager.

Required Methods§

Whether the application has registered the given accelerator.

Register a global shortcut of accelerator.

Unregister all accelerators registered by the manager instance.

Unregister the provided accelerator.

Implementors§