X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ccc303a24e383fbbebf790a7d7809e098b4a47f..a811affe70feeb727bf7fbd2748a48ded6ec3b9b:/src/mac/toplevel.cpp?ds=sidebyside diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp index d2e8ee8509..efcf1a737d 100644 --- a/src/mac/toplevel.cpp +++ b/src/mac/toplevel.cpp @@ -233,6 +233,7 @@ pascal OSStatus wxMacWindowEventHandler( EventHandlerCallRef handler , EventRef case kEventClassTextInput : if ( wxMacConvertEventToRecord( event , &rec ) ) { + wxTheApp->m_macCurrentEvent = &rec ; wxWindow* focus = wxWindow::FindFocus() ; if ( (focus != NULL) && wxTheApp->MacSendKeyDownEvent( focus , rec.message , rec.modifiers , rec.when , rec.where.h , rec.where.v ) ) {