support for default key handling (escape,enter,command-period) even if there is no control on the frame/dialog, that has the focus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2005-12-10 15:47:42 +00:00
parent ca71e3ae27
commit ccf1ef0f10

View 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 ;