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

Unified Diff: ui/base/ime/input_method_win.cc

Issue 2445253002: Fix the issue that the CJK IMEs default mode on the Omnibox is Latin/English. (Closed)
Patch Set: Created 4 years, 2 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/win/imm32_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_win.cc
diff --git a/ui/base/ime/input_method_win.cc b/ui/base/ime/input_method_win.cc
index 6e460e671ba60024d5d21c25c9e60a94190e0be7..49efa46632113f4ed070bb20fea853d86bc49869 100644
--- a/ui/base/ime/input_method_win.cc
+++ b/ui/base/ime/input_method_win.cc
@@ -52,6 +52,7 @@ InputMethodWin::InputMethodWin(internal::InputMethodDelegate* delegate,
composing_window_handle_(NULL),
weak_ptr_factory_(this) {
SetDelegate(delegate);
+ imm32_manager_.SetInputLanguage();
}
InputMethodWin::~InputMethodWin() {}
@@ -275,6 +276,7 @@ void InputMethodWin::OnInputLocaleChanged() {
// TODO(shuchen): Use ITfLanguageProfileNotifySink instead.
OnInputMethodChanged();
imm32_manager_.SetInputLanguage();
+ UpdateIMEState();
}
bool InputMethodWin::IsInputLocaleCJK() const {
« no previous file with comments | « no previous file | ui/base/ime/win/imm32_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698