Global Shortcut
Register global shortcuts.
Supported Platforms
- Windows
- Linux
- macOS
Setup
This plugin requires a Rust version of at least 1.75
Install the global-shortcut plugin to get started.
Use your project’s package manager to add the dependency:
-
Install the global-shortcut plugin by adding the following to your
Cargo.toml
file: -
Modify
lib.rs
to initialize the plugin: -
Install the JavaScript Guest bindings using your preferred JavaScript package manager:
Usage
The global-shortcut plugin is available in both JavaScript and Rust.
Permissions
By default all plugin commands are blocked and cannot be accessed. You must define a list of permissions in your capabilities
configuration.
See Permissions Overview for more information.
Permission | Description |
---|---|
global-shortcut:allow-is-registered | Enables the is_registered command without any pre-configured scope. |
global-shortcut:deny-is-registered | Denies the is_registered command without any pre-configured scope. |
global-shortcut:allow-register | Enables the register command without any pre-configured scope. |
global-shortcut:deny-register | Denies the register command without any pre-configured scope. |
global-shortcut:allow-register-all | Enables the register_all command without any pre-configured scope. |
global-shortcut:deny-register-all | Denies the register_all command without any pre-configured scope. |
global-shortcut:allow-unregister | Enables the unregister command without any pre-configured scope. |
global-shortcut:deny-unregister | Denies the unregister command without any pre-configured scope. |
global-shortcut:allow-unregister-all | Enables the unregister_all command without any pre-configured scope. |
global-shortcut:deny-unregister-all | Denies the unregister_all command without any pre-configured scope. |
© 2024 Tauri Contributors. CC-BY / MIT