Skip to content

global-shortcut

Register global shortcuts for your app.

Sep 26, 2026
  • ae3c808e (#3602) The plugin's global API script (used with app.withGlobalTauri) now resolves the core API from window.__TAURI__ instead of bundling its own copy of @tauri-apps/api. Values created with the core API are now accepted by plugin APIs in global mode (e.g. an Image from window.__TAURI__.image passed to clipboardManager.writeImage, which previously failed the instanceof check against the plugin's private copy), and the script is considerably smaller.
  • 9b29b601 Update MSRV to 1.90 to match tauri.
  • a87a3c7d Update documentation.
May 28, 2026
  • cb863d57 (#3408 by @renovate) Update crate global-hotkey to 0.8 to fix cpu usage while pressing the keys on windows and to add F13-F24 mappings on Linux/X11.
Oct 27, 2025
  • 93426f85 Fixed an issue that caused docs.rs builds to fail. No user facing changes.
Jun 25, 2025
May 20, 2025
  • 494d1fea (#2684 by @renovate) Updated global-hotkey crate to 0.7 to fix a panic when trying to register a key combination which was already registered by another program. No API changes.
Dec 9, 2024
  • 3a79266b (#2173 by @FabianLars) Bumped all plugins to v2.2.0. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
Oct 3, 2024
Oct 2, 2024
  • e2c4dfb6 Update to tauri v2 stable release.
Aug 29, 2024
  • e2e97db5 (#1701 by @lucasfernog) Update to tauri 2.0.0-rc.8

  • 2c00c029 (#1630 by @FabianLars) Fixed an issue that caused multi-word IIFE names to not be formatted correctly. For example the barcode-scanner was defined as window.__TAURI_PLUGIN_CLIPBOARDMANAGER__ instead of window.__TAURI_PLUGIN_CLIPBOARD_MANAGER__.

Aug 2, 2024
Jul 31, 2024
Jul 12, 2024
  • 381a466d (#1117 by @amrbashir) Refactored the JS APIs:

    • Enhanced register and unregister to take either a single shortcut or an array.
    • Removed registerAll instead use register with an array.
  • 22a17980 (#1537 by @lucasfernog) Update to tauri beta.24.

Jul 2, 2024
May 30, 2024
May 30, 2024
May 1, 2024
  • 9c7eb359(#1244) Refactored APIs to introduce new pressed and released events:

    • Added ShortcutEvent and ShortcutState types in Rust.
    • Changed the handler function passed to GlobalShortcut::on_shortcut, GlobalShortcut::on_all_shortcuts and Builder::with_handler to take a 3rd argument of type ShortcutEvent.
    • Added ShortcutEvent interface in JS.
    • Changed ShortcutHandler type alias (which affects the JS register and registerAll APIs) to take ShortcutEvent instead of a string.
  • bd1ed590(#1237) Update to tauri beta.17.

  • a04ea2f(#1071) The global API script is now only added to the binary when the withGlobalTauri config is true.

  • 62dafda(#969) Breaking change Refactored the plugin Rust APIs for better DX and flexibility:

    • Changed Builder::with_handler to be a method instead of a static method, it will also be triggered for any and all shortcuts even if the shortcut is registered through JS.
    • Added Builder::with_shortcut and Builder::with_shortcuts to register shortcuts on the plugin builder.
    • Added on_shortcut and on_all_shortcuts to register shortcuts with a handler.
Mar 7, 2024
Feb 21, 2024
Feb 3, 2024

global-shortcut full changelog


© 2026 Tauri Contributors. CC-BY / MIT