mirror of
https://github.com/tauri-apps/global-hotkey.git
synced 2026-01-31 00:45:22 +01:00
chore: prepare for objc2 frameworks v0.3 (#117)
These will have a bunch of default features enabled, so let's pre-emptively disable them.
This commit is contained in:
@@ -22,7 +22,10 @@ serde = { version = "1", optional = true, features = ["derive"] }
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
objc2 = "0.5.2"
|
||||
objc2-app-kit = { version = "0.2.2", features = ["NSEvent"] }
|
||||
objc2-app-kit = { version = "0.2.2", default-features = false, features = [
|
||||
"std",
|
||||
"NSEvent",
|
||||
] }
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
|
||||
version = "0.59"
|
||||
|
||||
@@ -93,8 +93,8 @@ impl GlobalHotKeyEvent {
|
||||
pub fn id(&self) -> u32 {
|
||||
self.id
|
||||
}
|
||||
/// Returns the state of the associated [`HotKey`].
|
||||
|
||||
/// Returns the state of the associated [`HotKey`].
|
||||
pub fn state(&self) -> HotKeyState {
|
||||
self.state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user