X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/87728739f23c6fcc737614e2e726f68778f9415b..68cb648117282847685d626d6fab58bf4f3618f3:/samples/keyboard/keyboard.cpp?ds=sidebyside diff --git a/samples/keyboard/keyboard.cpp b/samples/keyboard/keyboard.cpp index 29cc5abb96..ae4b8022e5 100644 --- a/samples/keyboard/keyboard.cpp +++ b/samples/keyboard/keyboard.cpp @@ -352,7 +352,7 @@ void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event)) void TextWindow::LogEvent(const wxChar *name, wxKeyEvent& event) { wxString key; - long keycode = event.KeyCode(); + long keycode = event.GetKeyCode(); switch ( keycode ) { case WXK_BACK: key = _T("BACK"); break;