diff options
Diffstat (limited to 'views/controls/textfield/native_textfield_gtk.cc')
-rw-r--r-- | views/controls/textfield/native_textfield_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc index 0b7cba1..cbe7a2c 100644 --- a/views/controls/textfield/native_textfield_gtk.cc +++ b/views/controls/textfield/native_textfield_gtk.cc @@ -384,7 +384,7 @@ gboolean NativeTextfieldGtk::OnKeyPressEventHandler( gboolean NativeTextfieldGtk::OnKeyPressEvent(GdkEventKey* event) { Textfield::Controller* controller = textfield_->GetController(); if (controller) { - KeyEvent key_event(event); + KeyEvent key_event(reinterpret_cast<GdkEvent*>(event)); return controller->HandleKeyEvent(textfield_, key_event); } return false; @@ -407,7 +407,7 @@ gboolean NativeTextfieldGtk::OnActivate() { Textfield::Controller* controller = textfield_->GetController(); if (controller) { - KeyEvent views_key_event(key_event); + KeyEvent views_key_event(event); handled = controller->HandleKeyEvent(textfield_, views_key_event); } |