diff --git a/engine/core/BUILD.gn b/engine/core/BUILD.gn index afb5dfe038d..54a92a669a6 100644 --- a/engine/core/BUILD.gn +++ b/engine/core/BUILD.gn @@ -23,6 +23,7 @@ source_set("libraries") { "//mojo/public/cpp/system", "//mojo/public/cpp/utility", "//mojo/public/interfaces/application", + "//mojo/services/keyboard/public/interfaces", "//mojo/services/navigation/public/interfaces", "//mojo/services/view_manager/public/cpp", "//skia", diff --git a/framework/sky-input.sky b/framework/sky-input.sky index 9ad21fb988a..9ebbaedbf60 100644 --- a/framework/sky-input.sky +++ b/framework/sky-input.sky @@ -3,7 +3,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. --> + + diff --git a/viewer/document_view.cc b/viewer/document_view.cc index cf48567326b..8125379b263 100644 --- a/viewer/document_view.cc +++ b/viewer/document_view.cc @@ -126,6 +126,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(); root_->AddObserver(this); }