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

Unified Diff: ash/shell.cc

Issue 298893003: Supports fake key events for setComposition/commitText by on-screen keyboards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | ui/base/ime/input_method_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 8de58b9056aafe1da3215f3de603b8a99c412512..78838efa7d1d5e7d967847689b893d99ee8f1de9 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -1155,6 +1155,9 @@ void Shell::OnWindowActivated(aura::Window* gained_active,
aura::Window* lost_active) {
if (gained_active)
target_root_window_ = gained_active->GetRootWindow();
+ input_method_filter_->UpdateTargetDispatcher(
+ target_root_window_ ? target_root_window_->GetHost()->event_processor()
+ : NULL);
sadrul 2014/05/31 18:10:16 The problem with this is that all non-ash users of
Shu Chen 2014/06/01 05:33:23 Done.
}
} // namespace ash
« no previous file with comments | « no previous file | ui/base/ime/input_method_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698