Index: views/controls/textfield/native_textfield_views.cc |
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc |
index baef03269ebd5accecefd1a0153cb9d0f2619943..008713fe3109762369761c90ddf0f4a7176aad08 100644 |
--- a/views/controls/textfield/native_textfield_views.cc |
+++ b/views/controls/textfield/native_textfield_views.cc |
@@ -98,10 +98,8 @@ void NativeTextfieldViews::OnMouseReleased(const views::MouseEvent& e, |
bool NativeTextfieldViews::OnKeyPressed(const views::KeyEvent& e) { |
Textfield::Controller* controller = textfield_->GetController(); |
bool handled = false; |
- if (controller) { |
- Textfield::Keystroke ks(&e); |
- handled = controller->HandleKeystroke(textfield_, ks); |
- } |
+ if (controller) |
+ handled = controller->HandleKeyEvent(textfield_, e); |
return handled || HandleKeyEvent(e); |
} |