fix(mac_platform): forward keyevent to system (#511)
* fix(mac_platform): forward keyevent to system * doc(changelog): update changelog
This commit is contained in:
parent
ffa9b51d27
commit
1819be1173
3 changed files with 9 additions and 8 deletions
|
|
@ -294,10 +294,7 @@ impl EventsLoop {
|
|||
|
||||
// FIXME: Document this. Why do we do this? Seems like it passes on events to window/app.
|
||||
// If we don't do this, window does not become main for some reason.
|
||||
match event_type {
|
||||
appkit::NSKeyDown => (),
|
||||
_ => appkit::NSApp().sendEvent_(ns_event),
|
||||
}
|
||||
appkit::NSApp().sendEvent_(ns_event);
|
||||
|
||||
let windows = self.shared.windows.lock().unwrap();
|
||||
let maybe_window = windows.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue