mirror of
https://github.com/servo/servo.git
synced 2025-06-15 03:44:30 +00:00
Pass all key events to the current constellation frame.
This commit is contained in:
parent
c5e1b0d32e
commit
1c64dabb15
7 changed files with 304 additions and 9 deletions
|
@ -25,7 +25,7 @@ extern crate serialize;
|
|||
use devtools_traits::DevtoolsControlChan;
|
||||
use libc::c_void;
|
||||
use servo_msg::constellation_msg::{ConstellationChan, PipelineId, Failure, WindowSizeData};
|
||||
use servo_msg::constellation_msg::{LoadData, SubpageId};
|
||||
use servo_msg::constellation_msg::{LoadData, SubpageId, Key, KeyState};
|
||||
use servo_msg::compositor_msg::ScriptListener;
|
||||
use servo_net::image_cache_task::ImageCacheTask;
|
||||
use servo_net::resource_task::ResourceTask;
|
||||
|
@ -74,7 +74,8 @@ pub enum CompositorEvent {
|
|||
ClickEvent(uint, Point2D<f32>),
|
||||
MouseDownEvent(uint, Point2D<f32>),
|
||||
MouseUpEvent(uint, Point2D<f32>),
|
||||
MouseMoveEvent(Point2D<f32>)
|
||||
MouseMoveEvent(Point2D<f32>),
|
||||
KeyEvent(Key, KeyState),
|
||||
}
|
||||
|
||||
/// An opaque wrapper around script<->layout channels to avoid leaking message types into
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue