Index: views/event_gtk.cc |
diff --git a/views/event_gtk.cc b/views/event_gtk.cc |
index cae426d2ddbb543eec493a06aa75a2cee947dd95..34314bf38f0fef4471cc46ecba561dbf34c05617 100644 |
--- a/views/event_gtk.cc |
+++ b/views/event_gtk.cc |
@@ -10,14 +10,15 @@ |
namespace views { |
-KeyEvent::KeyEvent(GdkEventKey* event) |
+KeyEvent::KeyEvent(const GdkEventKey* event) |
: Event(event->type == GDK_KEY_PRESS ? |
Event::ET_KEY_PRESSED : Event::ET_KEY_RELEASED, |
GetFlagsFromGdkState(event->state)), |
// TODO(erg): All these values are iffy. |
key_code_(app::WindowsKeyCodeForGdkKeyCode(event->keyval)), |
repeat_count_(0), |
- message_flags_(0) { |
+ message_flags_(0), |
+ native_event_(event) { |
} |
// static |