Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: ui/views/widget/widget.cc

Issue 294023002: aura: Updates the text input client when native activation changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed CrOS login screen. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/views/focus/focus_manager.cc ('K') | « ui/views/focus/focus_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index b2ce42f2f431ddd8cb5228d70934dac736e9f31d..892bef3ba633ae41449257072e2b05e1da574259 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1031,6 +1031,16 @@ void Widget::OnNativeWidgetActivationChanged(bool active) {
FOR_EACH_OBSERVER(WidgetObserver, observers_,
OnWidgetActivationChanged(this, active));
+ // We have to update the focused text input client when the active widget
+ // changes. See crbug.com/377479
+ views::FocusManager* focus_manager = GetFocusManager();
+ if (focus_manager) {
+ if (active)
+ focus_manager->FocusTextInputClient(focus_manager->GetFocusedView());
+ else
+ focus_manager->BlurTextInputClient(focus_manager->GetFocusedView());
+ }
+
if (IsVisible() && non_client_view())
non_client_view()->frame_view()->SchedulePaint();
}
« ui/views/focus/focus_manager.cc ('K') | « ui/views/focus/focus_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698