diff options
Diffstat (limited to 'components/compositing/compositor_task.rs')
-rw-r--r-- | components/compositing/compositor_task.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/compositing/compositor_task.rs b/components/compositing/compositor_task.rs index 7eaf56798a2..e2f21d0910e 100644 --- a/components/compositing/compositor_task.rs +++ b/components/compositing/compositor_task.rs @@ -91,9 +91,7 @@ impl ScriptListener for Box<CompositorProxy+'static+Send> { } fn send_key_event(&mut self, key: Key, state: KeyState, modifiers: KeyModifiers) { - if state == KeyState::Pressed { - self.send(Msg::KeyEvent(key, modifiers)); - } + self.send(Msg::KeyEvent(key, state, modifiers)); } } @@ -218,7 +216,7 @@ pub enum Msg { /// composite should happen. (See the `scrolling` module.) ScrollTimeout(u64), /// Sends an unconsumed key event back to the compositor. - KeyEvent(Key, KeyModifiers), + KeyEvent(Key, KeyState, KeyModifiers), /// Changes the cursor. SetCursor(Cursor), /// Informs the compositor that the paint task for the given pipeline has exited. |