mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Make clicking on an element request focus for focusable elements.
This commit is contained in:
parent
a34d1573b6
commit
757371f4f0
5 changed files with 46 additions and 24 deletions
|
@ -2504,9 +2504,7 @@ impl ScriptThread {
|
|||
let frame_element = doc.find_iframe(browsing_context_id);
|
||||
|
||||
if let Some(ref frame_element) = frame_element {
|
||||
doc.begin_focus_transaction();
|
||||
doc.request_focus(frame_element.upcast());
|
||||
doc.commit_focus_transaction(FocusType::Parent);
|
||||
doc.request_focus(Some(frame_element.upcast()), FocusType::Parent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue