diff options
Diffstat (limited to 'components/compositing/compositor.rs')
-rw-r--r-- | components/compositing/compositor.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 270a6b656d0..8041fd7f1df 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -701,9 +701,9 @@ impl<Window: WindowMethods> IOCompositor<Window> { self.composition_request = CompositionRequest::CompositeNow(reason) } - (Msg::KeyEvent(key, state, modified), ShutdownState::NotShuttingDown) => { + (Msg::KeyEvent(ch, key, state, modified), ShutdownState::NotShuttingDown) => { if state == KeyState::Pressed { - self.window.handle_key(key, modified); + self.window.handle_key(ch, key, modified); } } @@ -1348,8 +1348,8 @@ impl<Window: WindowMethods> IOCompositor<Window> { self.on_touchpad_pressure_event(cursor, pressure, stage); } - WindowEvent::KeyEvent(key, state, modifiers) => { - self.on_key_event(key, state, modifiers); + WindowEvent::KeyEvent(ch, key, state, modifiers) => { + self.on_key_event(ch, key, state, modifiers); } WindowEvent::Quit => { @@ -1880,8 +1880,8 @@ impl<Window: WindowMethods> IOCompositor<Window> { } } - fn on_key_event(&self, key: Key, state: KeyState, modifiers: KeyModifiers) { - let msg = ConstellationMsg::KeyEvent(key, state, modifiers); + fn on_key_event(&self, ch: Option<char>, key: Key, state: KeyState, modifiers: KeyModifiers) { + let msg = ConstellationMsg::KeyEvent(ch, key, state, modifiers); if let Err(e) = self.constellation_chan.send(msg) { warn!("Sending key event to constellation failed ({}).", e); } |