]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valtext.cpp
removed style parameter from MSWCreateToolbar(), it is unneeded
[wxWidgets.git] / src / common / valtext.cpp
index fc7bc3e4c752f86a5a57244ce0a5c6f1f408c7ca..8511859d66c759ac9794420e84a0248114326aa9 100644 (file)
@@ -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 (