mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Sending key events through script task before processing them in the compositor.
Fixes #4163
This commit is contained in:
parent
f451005f4f
commit
b0552cb98e
10 changed files with 131 additions and 66 deletions
|
@ -946,6 +946,10 @@ impl ScriptTask {
|
|||
// TODO: if keypress event is canceled, prevent firing input events
|
||||
}
|
||||
|
||||
if !prevented {
|
||||
self.compositor.borrow_mut().send_key_event(key, state, modifiers);
|
||||
}
|
||||
|
||||
// This behavior is unspecced
|
||||
// We are supposed to dispatch synthetic click activation for Space and/or Return,
|
||||
// however *when* we do it is up to us
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue