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:
@@ -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
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user