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:
parent
ca71e3ae27
commit
ccf1ef0f10
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user