Changed Msg::KeyEvent to take in KeyState and moved the checks in CompositorTask::send_key_event to Compositor::handle_browser_message

This commit is contained in:
Keith Yeung 2015-02-04 10:30:23 +08:00
parent b262fc16e0
commit 37cb876f4e
3 changed files with 7 additions and 7 deletions

View file

@ -893,7 +893,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
CompositorEvent::KeyEvent(key, state, mods))).unwrap();
},
None => self.compositor_proxy.clone_compositor_proxy()
.send(CompositorMsg::KeyEvent(key, mods))
.send(CompositorMsg::KeyEvent(key, state, mods))
}
}