From: Stefan Csomor Date: Sat, 10 Dec 2005 15:47:42 +0000 (+0000) Subject: support for default key handling (escape,enter,command-period) even if there is no... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ccf1ef0f10091f8218bac2edf48e005fd2c0bee6 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 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 686346c3cc..3db632a59f 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -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 ;