mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
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:
parent
a809d6b911
commit
efc75ef40e
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue