Chromium Code Reviews| Index: sky/viewer/document_view.cc |
| diff --git a/sky/viewer/document_view.cc b/sky/viewer/document_view.cc |
| index e7cc0115904f0841c87d5a322788f4d884ad390f..ba69a4e980b31e091c962a9a324e2d3db79d6c17 100644 |
| --- a/sky/viewer/document_view.cc |
| +++ b/sky/viewer/document_view.cc |
| @@ -124,6 +124,8 @@ void DocumentView::OnEmbed( |
| // TODO(abarth): We should ask the view whether it is focused instead of |
| // assuming that we're focused. |
| web_view_->setFocus(true); |
| + // Needed on android, as the window does not get the focus otherwise. |
| + root_->SetFocus(); |
|
qsr
2015/01/21 15:33:05
This seems very wrong. But given that you explicit
|
| root_->AddObserver(this); |
| } |