]> git.saurik.com Git - wxWidgets.git/commitdiff
nschars is never used for the wxEVT_CHAR case, so don't assign it a different value...
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 1 Feb 2010 01:20:15 +0000 (01:20 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 1 Feb 2010 01:20:15 +0000 (01:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index 5f7336b1f2c123599606d2c512fa12daeba32c3b..eef2cdf99405684fb167cc165980de63a51584e0 100644 (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