]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
Use checkbox if togglebutton not available.
[wxWidgets.git] / src / gtk / combobox.cpp
index 8ed30aed1068ab60622e86846e0d2926130659c2..ab4fa422edac764b002964f86c78a773dd09f06a 100644 (file)
@@ -614,7 +614,7 @@ void wxComboBox::SetEditable( bool editable )
 
 void wxComboBox::OnChar( wxKeyEvent &event )
 {
-    if ( event.KeyCode() == WXK_RETURN )
+    if ( event.GetKeyCode() == WXK_RETURN )
     {
         wxString value = GetValue();