]> git.saurik.com Git - wxWidgets.git/commitdiff
support for default key handling (escape,enter,command-period) even if there is no...
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Dec 2005 15:47:42 +0000 (15:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Dec 2005 15:47:42 +0000 (15:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 686346c3ccfc0c723d954d0e79cb38d4f4cbc437..3db632a59fb8ee120a970cfe0884258ba0c09aab 100644 (file)
@@ -170,8 +170,8 @@ static pascal OSStatus KeyboardEventHandler( EventHandlerCallRef handler , Event
     // FindFocus does not return the actual focus window,but the enclosing window
     wxWindow* focus = wxWindow::DoFindFocus();
     if ( focus == NULL )
-        return result ;
-
+        focus = (wxTopLevelWindowMac*) data ;
+    
     unsigned char charCode ;
     wxChar uniChar = 0 ;
     UInt32 keyCode ;