| Index: components/exo/shell_surface.cc
|
| diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
|
| index d8b5e7bf93935ef26dd9c7197b5e23f402382458..bcd44b4471501e5e5a6f4c16602ddc62bd1dd907 100644
|
| --- a/components/exo/shell_surface.cc
|
| +++ b/components/exo/shell_surface.cc
|
| @@ -1020,6 +1020,12 @@ void ShellSurface::CreateShellSurfaceWidget(ui::WindowShowState show_state) {
|
| widget_ = new ShellSurfaceWidget(this);
|
| widget_->Init(params);
|
|
|
| + // Make root view of ShellSurfaceWidget non-focusable. If it's focusable,
|
| + // accessibility service will put focus on it and consumes key events.
|
| + views::View* root_view = widget_->GetRootView();
|
| + DCHECK(root_view);
|
| + root_view->SetFocusBehavior(views::View::FocusBehavior::NEVER);
|
| +
|
| aura::Window* window = widget_->GetNativeWindow();
|
| window->SetName("ExoShellSurface");
|
| window->AddChild(surface_->window());
|
|
|