mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
b262fc16e0
commit
37cb876f4e
3 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue