]> git.saurik.com Git - wxWidgets.git/commitdiff
removing unnecessary code
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 27 Jan 2006 17:05:23 +0000 (17:05 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 27 Jan 2006 17:05:23 +0000 (17:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index a7b737545a2d56ca58b249d9ba882aa4c8be9c63..7f282379cbceae4db3978df0a145f2b2fb7a82c6 100644 (file)
@@ -559,24 +559,7 @@ pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , Even
                 GetEventParameter( rawEvent, kEventParamMouseLocation, typeQDPoint, NULL, sizeof(Point), NULL, &point );
                 
                 UInt32 message = (keyCode << 8) + charCode;
-                // this is only called when no default handler has jumped in, e.g. a wxControl on a floater window does not
-                // get its own kEventTextInputUnicodeForKeyEvent, so we reroute the event back to the control
-                
-                // NOTE to Stefan: Is this still needed? Shouldn't we be calling SendToEventTarget rather than
-                // HandleControlKey? (which, IIRC, is not Unicode friendly?) TODO :: MEMORY LEAK IN uniChar etc.
-                /*
-                wxControl* control = wxDynamicCast( focus , wxControl ) ;
-                if ( control )
-                {
-                    ControlRef macControl = (ControlRef) control->GetHandle() ;
-                    if ( macControl )
-                    {
-                        ::HandleControlKey( macControl , keyCode , charCode , modifiers ) ;
-                        result = noErr ;
-                    }
-                }
-                */
-                
+
                 // An IME input event may return several characters, but we need to send one char at a time to
                 // EVT_CHAR
                 for (int pos=0 ; pos < numChars ; pos++)