]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/keyboard/keyboard.cpp
mention Win9x size limitation
[wxWidgets.git] / samples / keyboard / keyboard.cpp
index 29cc5abb9611fc6de6a61c5a644c3adf9afbdb6c..ae4b8022e5eeaa33171da6b6788695e058d1a0c1 100644 (file)
@@ -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;