mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Address review comments
This commit is contained in:
parent
6482e313d6
commit
a2f7e0fbd6
4 changed files with 63 additions and 67 deletions
|
@ -894,6 +894,7 @@ impl ScriptTask {
|
|||
let event = EventCast::from_ref(*keyevent);
|
||||
let _ = target.DispatchEvent(event);
|
||||
let mut prevented = event.DefaultPrevented();
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#keys-cancelable-keys
|
||||
if state != Released && props.is_printable() && !prevented {
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#keypress-event-order
|
||||
|
@ -925,6 +926,7 @@ impl ScriptTask {
|
|||
}
|
||||
_ => ()
|
||||
}
|
||||
|
||||
window.flush_layout();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue