From: Kevin Ollivier Date: Mon, 1 Feb 2010 01:20:15 +0000 (+0000) Subject: nschars is never used for the wxEVT_CHAR case, so don't assign it a different value... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2fea6972c7975a59b3cb2470c3d320402dfa2f97 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 --- diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 5f7336b1f2..eef2cdf994 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -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