From: Stefan Csomor Date: Fri, 31 Dec 2004 13:19:18 +0000 (+0000) Subject: setting focus explicitely when using showmodal X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/90b78a567f3271fede518e42de3f90eef10a3fdb setting focus explicitely when using showmodal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index 9ec4ef5220..cc581e9bf4 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -163,6 +163,8 @@ void wxDialog::DoShowModal() wxModalDialogs.Append(this); + SetFocus() ; + #if TARGET_CARBON BeginAppModalStateForWindow( (WindowRef) MacGetWindowRef()) ; #else