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
This commit is contained in:
Mike Blumenkrantz 2015-05-21 13:31:00 -04:00
parent a809d6b911
commit efc75ef40e

View file

@ -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)