adding events to single line textcontrols (password is not fully supported)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-06-11 06:40:24 +00:00
parent 0cd4552a99
commit 7cb2a24183
5 changed files with 162 additions and 101 deletions

View File

@@ -580,6 +580,8 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
event.Skip(true) ;
}
// osx_cocoa sends its event upon insertText
#if wxOSX_USE_CARBON
if ( ( key >= 0x20 && key < WXK_START ) ||
( key >= WXK_NUMPAD0 && key <= WXK_DIVIDE ) ||
key == WXK_RETURN ||
@@ -590,6 +592,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
event1.SetEventObject( this );
wxPostEvent( GetEventHandler(), event1 );
}
#endif
}
// ----------------------------------------------------------------------------