X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07157c53d001f596d48d7e2281af7f4d013b0d72..e4d47fbd6f53b11276dde270e325b339393e9702:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index dd42a80064..1fd8a2a504 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -1690,7 +1690,7 @@ void MyComboBox::OnChar(wxKeyEvent& event) { wxLogMessage(_T("MyComboBox::OnChar")); - if ( event.KeyCode() == 'w' ) + if ( event.GetKeyCode() == 'w' ) wxLogMessage(_T("MyComboBox: 'w' will be ignored.")); else event.Skip(); @@ -1700,7 +1700,7 @@ void MyComboBox::OnKeyDown(wxKeyEvent& event) { wxLogMessage(_T("MyComboBox::OnKeyDown")); - if ( event.KeyCode() == 'w' ) + if ( event.GetKeyCode() == 'w' ) wxLogMessage(_T("MyComboBox: 'w' will be ignored.")); else event.Skip();