mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-08 14:03:53 +02:00
refactor(global-shortcut): enhance un/register to accept an array, remove un/registerAll (#1117)
* refactor(shell): enhance `un/register` to accept an array, remove `un/registerAll` closes #1101 * Update lib.rs * remove permissions, cleanup docs * bring back unregister_all * fmt * fix build * bundle --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
---
|
||||
"global-shortcut": "patch"
|
||||
---
|
||||
|
||||
Refactored the Rust APIs:
|
||||
|
||||
- Renamed `GlobalShortcut::on_all_shortcuts` to `GlobalShortcut::on_shortcuts`
|
||||
- Renamed `GlobalShortcut::register_all` to `GlobalShortcut::register_multiple`
|
||||
- Changed `GlobalShortcut::unregister_all` behavior to remove all registerd shortcuts.
|
||||
- Added `GlobalShortcut::unregister_multiple` to register a list of shortcuts (old behavior of `unregister_all`).
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"global-shortcut-js": "patch"
|
||||
---
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user