nschars is never used for the wxEVT_CHAR case, so don't assign it a different value for this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2010-02-01 01:20:15 +00:00
parent 98182acce8
commit 2fea6972c7

View File

@@ -302,7 +302,7 @@ void wxWidgetCocoaImpl::SetupKeyEvent(wxKeyEvent &wxevent , NSEvent * nsEvent, N
wxString chars;
if ( eventType != NSFlagsChanged )
{
NSString* nschars = (wxevent.GetEventType() != wxEVT_CHAR) ? [nsEvent charactersIgnoringModifiers] : [nsEvent characters];
NSString* nschars = [nsEvent charactersIgnoringModifiers];
if ( charString )
{
// if charString is set, it did not come from key up / key down