From 814ca68c728146aebf2b7d4a161755afc6fdb325 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Mon, 15 Dec 2014 09:21:32 -0500 Subject: [PATCH] Add handle_key stub to gonk port --- ports/gonk/src/window.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/gonk/src/window.rs b/ports/gonk/src/window.rs index 27a21cf308a..d4795f30cee 100644 --- a/ports/gonk/src/window.rs +++ b/ports/gonk/src/window.rs @@ -13,6 +13,7 @@ use layers::platform::surface::NativeGraphicsMetadata; use libc::c_int; use msg::compositor_msg::{Blank, IdlePaintState}; use msg::compositor_msg::{ReadyState, PaintState}; +use msg::constellation_msg::{Key, KeyModifiers}; use msg::constellation_msg::LoadData; use std::cell::Cell; use std::comm::Receiver; @@ -810,6 +811,9 @@ impl WindowMethods for Window { } } + fn handle_key(&self, _: Key, _: KeyModifiers) { + } + fn create_compositor_channel(window: &Option>) -> (Box, Box) { let (sender, receiver) = channel();