Chromium Code Reviews| Index: ui/aura/window_targeter.cc |
| diff --git a/ui/aura/window_targeter.cc b/ui/aura/window_targeter.cc |
| index 1364ab3fb83ccce05ac450e98d83c664ef7cefcf..9853585d3cda3a6a0dddb1503f668abb4b34c7d5 100644 |
| --- a/ui/aura/window_targeter.cc |
| +++ b/ui/aura/window_targeter.cc |
| @@ -107,6 +107,8 @@ Window* WindowTargeter::FindTargetForKeyEvent(Window* window, |
| const ui::KeyEvent& key) { |
| Window* root_window = window->GetRootWindow(); |
| client::FocusClient* focus_client = client::GetFocusClient(root_window); |
| + if (!focus_client) |
| + return window; |
|
sadrul
2016/07/20 16:58:36
Should this return nullptr?
halliwell
2016/07/20 17:01:42
tbh I don't understand this code well. But I was
|
| Window* focused_window = focus_client->GetFocusedWindow(); |
| if (!focused_window) |
| return window; |