Skip to content

Commit cdc8d0e

Browse files
committed
fix consumption of hotkey
1 parent 5a2f0b6 commit cdc8d0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/platform/macos/launching.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{
22
ffi::c_void,
3-
ptr::NonNull,
3+
ptr::{NonNull, null_mut},
44
sync::{Arc, Mutex},
55
};
66

@@ -129,7 +129,7 @@ extern "C-unwind" fn keyboard_event_callback(
129129
sender.0.try_send(Message::KeyPressed(shortcut)).unwrap();
130130
}
131131

132-
unsafe { event.as_mut() }
132+
unsafe { null_mut() }
133133
}
134134

135135
pub struct CallbackData {

0 commit comments

Comments
 (0)