| Index: ui/base/ime/input_method_imm32.cc
|
| diff --git a/ui/base/ime/input_method_imm32.cc b/ui/base/ime/input_method_imm32.cc
|
| index 1a3cf266afec3ab10bae0971c08ebdcaa2890aa3..f40baad34425380edeab63dbfc15ef95185c763d 100644
|
| --- a/ui/base/ime/input_method_imm32.cc
|
| +++ b/ui/base/ime/input_method_imm32.cc
|
| @@ -270,17 +270,20 @@ void InputMethodIMM32::ConfirmCompositionText() {
|
| void InputMethodIMM32::UpdateIMEState() {
|
| // Use switch here in case we are going to add more text input types.
|
| // We disable input method in password field.
|
| + const HWND window_handle = GetAttachedWindowHandle(GetTextInputClient());
|
| switch (GetTextInputType()) {
|
| case ui::TEXT_INPUT_TYPE_NONE:
|
| case ui::TEXT_INPUT_TYPE_PASSWORD:
|
| - imm32_manager_.DisableIME(GetAttachedWindowHandle(GetTextInputClient()));
|
| + imm32_manager_.DisableIME(window_handle);
|
| enabled_ = false;
|
| break;
|
| default:
|
| - imm32_manager_.EnableIME(GetAttachedWindowHandle(GetTextInputClient()));
|
| + imm32_manager_.EnableIME(window_handle);
|
| enabled_ = true;
|
| break;
|
| }
|
| +
|
| + imm32_manager_.SetTextInputMode(window_handle, GetTextInputMode());
|
| }
|
|
|
| bool InputMethodIMM32::IsWindowFocused(const TextInputClient* client) const {
|
|
|