X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d84afea9d1ec41ee4e2ebb3bf6b87926cf5f04d1..ddbfcced85b54ed15ff40605d29e55d73d0e6d03:/src/common/valtext.cpp diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index fc7bc3e4c7..8511859d66 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -269,7 +269,7 @@ void wxTextValidator::OnChar(wxKeyEvent& event) if ( m_validatorWindow ) { - int keyCode = (int)event.KeyCode(); + int keyCode = event.GetKeyCode(); // we don't filter special keys and Delete if (