Chromium Code Reviews| Index: ui/views/focus/focus_manager.cc |
| diff --git a/ui/views/focus/focus_manager.cc b/ui/views/focus/focus_manager.cc |
| index b4bbd17cba9081be0fea01481b4bb9e41b0d2bdc..3a6bba730b544c482a522eaddb6a1b914a30db5d 100644 |
| --- a/ui/views/focus/focus_manager.cc |
| +++ b/ui/views/focus/focus_manager.cc |
| @@ -313,8 +313,12 @@ View* FocusManager::GetNextFocusableView(View* original_starting_view, |
| void FocusManager::SetFocusedViewWithReason( |
| View* view, FocusChangeReason reason) { |
| - if (focused_view_ == view) |
| + if (focused_view_ == view) { |
| + // In the case that the widget lost the focus and gained it back without |
| + // changing the focused view, we have to make the text input client focused. |
|
msw
2014/06/02 17:17:04
When does the widget lose and regain focus without
Yuki
2014/06/08 11:08:16
Okay, I found the cause. Here is the scenario. S
msw
2014/06/10 04:05:08
Hmm, maybe FocusController::SetFocusedWindow shoul
Yuki
2014/06/10 05:59:00
I understand that the reason why sky@ recommended
|
| + FocusTextInputClient(focused_view_); |
| return; |
| + } |
| base::AutoReset<bool> auto_changing_focus(&is_changing_focus_, true); |
| // Update the reason for the focus change (since this is checked by |