Dispatch key events to the currently focused window.

This fixes the browser demo. You can now enter text into the URL bar.

BUG=431047
R=sky@chromium.org

Review URL: https://codereview.chromium.org/737913002
This commit is contained in:
Elliot Glaysher
2014-11-19 10:39:24 -08:00
parent 717ee79a4b
commit 2df4773295

View File

@@ -60,8 +60,8 @@ void SkyDebugger::OnEmbed(
content_->SetBounds(root_->bounds());
root_->AddChild(content_);
window_manager_app_->InitFocus(scoped_ptr<mojo::FocusRules>(
new mojo::BasicFocusRules(window_manager_app_.get(), content_)));
window_manager_app_->InitFocus(
scoped_ptr<mojo::FocusRules>(new mojo::BasicFocusRules(content_)));
if (!pending_url_.empty())
NavigateToURL(pending_url_);