| Index: ui/views/widget/native_widget_aura.cc
|
| ===================================================================
|
| --- ui/views/widget/native_widget_aura.cc (revision 150588)
|
| +++ ui/views/widget/native_widget_aura.cc (working copy)
|
| @@ -687,7 +687,7 @@
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // NativeWidgetAura, views::InputMethodDelegate implementation:
|
|
|
| -void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) {
|
| +void NativeWidgetAura::DispatchKeyEventPostIME(const ui::KeyEvent& key) {
|
| FocusManager* focus_manager = GetWidget()->GetFocusManager();
|
| if (focus_manager)
|
| focus_manager->MaybeResetMenuKeyState(key);
|
| @@ -746,10 +746,7 @@
|
| // and the window may be invisible by that time.
|
| if (!window_->IsVisible())
|
| return false;
|
| - InputMethod* input_method = GetWidget()->GetInputMethod();
|
| - DCHECK(input_method);
|
| - KeyEvent views_event(event);
|
| - input_method->DispatchKeyEvent(views_event);
|
| + GetWidget()->GetInputMethod()->DispatchKeyEvent(*event);
|
| return true;
|
| }
|
|
|
|
|