diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 0a1211b9fd..9d81a24486 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -782,7 +782,7 @@ void MyListCtrl::OnFocused(wxListEvent& event) void MyListCtrl::OnListKeyDown(wxListEvent& event) { - switch ( event.GetCode() ) + switch ( event.GetKeyCode() ) { case 'c': // colorize case 'C':