Skip to main content

Crate tauri_plugin_global_shortcut

Crate tauri_plugin_global_shortcut 

Source
Expand description

Register global shortcuts.

  • Supported platforms: Windows, Linux and macOS.
  • On macOS, registering and unregistering shortcuts must happen on the main thread, so every GlobalShortcut operation dispatches to it and blocks until it completes.

Structs§

Builder
Builder for the global shortcut plugin, letting you configure shortcuts and a handler that are registered as soon as the plugin is set up, before Builder::build is called.
GlobalShortcut
The global shortcut APIs, accessible through GlobalShortcutExt::global_shortcut.
Modifiers
Pressed modifier keys.
Shortcut
A keyboard shortcut that consists of an optional combination of modifier keys (provided by Modifiers) and one key (Code).
ShortcutEvent
Describes a global hotkey event emitted when a HotKey is pressed or released.
ShortcutWrapper
Internal wrapper around a Shortcut that lets the shortcut-accepting APIs on GlobalShortcut and Builder be generic over an already-parsed Shortcut or a string accelerator such as "CmdOrControl+Q".

Enums§

Code
Code is the physical position of a key.
Error
Errors that can happen while registering, unregistering or parsing global shortcuts.
ShortcutState
Describes the state of the HotKey.

Traits§

GlobalShortcutExt
Extension trait for Manager implementors (e.g. AppHandle) that exposes access to the global shortcut APIs.