Struct tao::global_shortcut::ShortcutManager [−][src]
pub struct ShortcutManager { /* fields omitted */ }
Expand description
Object that allows you to manage a GlobalShortcut
.
Implementations
Creates a new shortcut manager instance connected to the event loop.
Whether the application has registered this Accelerator
.
pub fn register(
&mut self,
accelerator: Accelerator
) -> Result<GlobalShortcut, ShortcutManagerError>
pub fn register(
&mut self,
accelerator: Accelerator
) -> Result<GlobalShortcut, ShortcutManagerError>
Register a global shortcut of Accelerator
who trigger GlobalShortcutEvent
in the event loop.
Unregister all Accelerator
registered by the manager instance.
pub fn unregister(
&mut self,
global_shortcut: GlobalShortcut
) -> Result<(), ShortcutManagerError>
pub fn unregister(
&mut self,
global_shortcut: GlobalShortcut
) -> Result<(), ShortcutManagerError>
Unregister the provided Accelerator
.