Add function to remove all global shortcuts.
This commit is contained in:
1 parent
6a16df835d
commit
8657b47401
2 files changed
+17
No files matched your search
@@ -271,6 +271,11 @@ impl DesktopContext {
|
||||
self.shortcut_manager.remove_shortcut(id)
|
||||
}
|
||||
|
||||
/// Remove all global shortcuts
|
||||
pub fn remove_all_shortcuts(&self) {
|
||||
self.shortcut_manager.remove_all()
|
||||
}
|
||||
|
||||
/// Push an objc view to the window
|
||||
#[cfg(target_os = "ios")]
|
||||
pub fn push_view(&self, view: objc_id::ShareId<objc::runtime::Object>) {
|
||||
|
||||
Reference in new issue
Block a user