mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Implement document focus context and hook it up to click events.
This commit is contained in:
parent
329ba56fca
commit
84bc17e7ad
4 changed files with 57 additions and 7 deletions
|
@ -415,6 +415,9 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
let doc = document_from_node(*self).root();
|
||||
doc.request_focus(ElementCast::from_ref(*self));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue