From efc75ef40eba5c379a141c76d8bf49eda2f6db3f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 21 May 2015 13:31:00 -0400 Subject: [PATCH] ignore KEYEVENT_RAWKEYDOWN in cef browser events I'm not sure exactly what this is supposed to do and there are no docs. from what I've observed, nothing happens on this event --- ports/cef/browser_host.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ports/cef/browser_host.rs b/ports/cef/browser_host.rs index 680f7e8b99b..30645d17b39 100644 --- a/ports/cef/browser_host.rs +++ b/ports/cef/browser_host.rs @@ -111,8 +111,10 @@ full_cef_class_impl! { _ => constellation_msg::Key::Space, }; let key_state = match (*event).t { - KEYEVENT_RAWKEYDOWN => KeyState::Pressed, - KEYEVENT_KEYDOWN | KEYEVENT_CHAR => KeyState::Repeated, + // in tests with cef-real, this event had no effect + KEYEVENT_RAWKEYDOWN => return, + KEYEVENT_KEYDOWN => KeyState::Pressed, + KEYEVENT_CHAR => KeyState::Repeated, KEYEVENT_KEYUP => KeyState::Released, }; let key_modifiers = KeyModifiers::empty(); // TODO(pcwalton)