Checkpoint

This commit is contained in:
Nathan Sobo 2023-10-09 19:54:23 -06:00
parent 7b610f8dd8
commit f763ed9a7e
7 changed files with 309 additions and 22 deletions

View file

@ -923,7 +923,7 @@ extern "C" fn send_event(this: &mut Object, _sel: Sel, native_event: id) {
if let Some(event) = Event::from_native(native_event, None) {
let platform = get_foreground_platform(this);
if let Some(callback) = platform.0.lock().event.as_mut() {
if callback(event) {
if !callback(event) {
return;
}
}