-
381a466d
(#1117 by @amrbashir) Refactored the JS APIs:- Enhanced
register
andunregister
to take either a single shortcut or an array. - Removed
registerAll
instead useregister
with an array.
- Enhanced
-
22a17980
(#1537 by @lucasfernog) Update to tauri beta.24.
-
9c7eb359
(#1244) Refactored APIs to introduce new pressed and released events:- Added
ShortcutEvent
andShortcutState
types in Rust. - Changed the handler function passed to
GlobalShortcut::on_shortcut
,GlobalShortcut::on_all_shortcuts
andBuilder::with_handler
to take a 3rd argument of typeShortcutEvent
. - Added
ShortcutEvent
interface in JS. - Changed
ShortcutHandler
type alias (which affects the JSregister
andregisterAll
APIs) to takeShortcutEvent
instead of a string.
- Added
-
a04ea2f
(#1071) The global API script is now only added to the binary when thewithGlobalTauri
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
andBuilder::with_shortcuts
to register shortcuts on the plugin builder. - Added
on_shortcut
andon_all_shortcuts
to register shortcuts with a handler.
- Changed
569defb
Update to tauri beta.4.
717ae67
(#371) First v2 alpha release! -apps/plugins-workspace/pull/371)) First v2 alpha release! te to alpha.11.
717ae67
(#371) First v2 alpha release! 717ae670978feb4492fac1f295998b93f2b9347f)(#371) First v2 alpha release! ](tauri-apps#371)) First v2 alpha release! 717ae670978feb4492fac1f295998b93f2b9347f)(#371) First v2 alpha release!