fix(mac_platform): forward keyevent to system (#511)

* fix(mac_platform): forward keyevent to system

* doc(changelog): update changelog
This commit is contained in:
OJ Kwon 2018-05-12 19:10:57 -07:00 committed by Francesca Frangipane
parent ffa9b51d27
commit 1819be1173
3 changed files with 9 additions and 8 deletions

View file

@ -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()