| Index: ui/views/ime/input_method_win.cc
|
| diff --git a/ui/views/ime/input_method_win.cc b/ui/views/ime/input_method_win.cc
|
| index 5411e3f17a919c1cb46b9e3c2729470748e5a752..b0354b57e302e9b20989cfddb98f8cd2667b1c93 100644
|
| --- a/ui/views/ime/input_method_win.cc
|
| +++ b/ui/views/ime/input_method_win.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -260,11 +260,8 @@ LRESULT InputMethodWin::OnChar(
|
| if (!GetTextInputClient())
|
| return 0;
|
|
|
| - int flags = 0;
|
| - flags |= (::GetKeyState(VK_MENU) & 0x80)? ui::EF_ALT_DOWN : 0;
|
| - flags |= (::GetKeyState(VK_SHIFT) & 0x80)? ui::EF_SHIFT_DOWN : 0;
|
| - flags |= (::GetKeyState(VK_CONTROL) & 0x80)? ui::EF_CONTROL_DOWN : 0;
|
| - GetTextInputClient()->InsertChar(static_cast<char16>(wparam), flags);
|
| + GetTextInputClient()->InsertChar(static_cast<char16>(wparam),
|
| + GetModifiersFromKeyState());
|
| return 0;
|
| }
|
|
|
|
|