From: Stefan Csomor Date: Thu, 11 Sep 2003 18:59:06 +0000 (+0000) Subject: focus setting must be possible even when not shown yet X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/80965ff88e7cddafbb59e0028035bba25a3e03b3 focus setting must be possible even when not shown yet git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 47506b8948..19bee0ff66 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -439,7 +439,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF /* set up locals */ focusResult = kControlFocusNoPart; tpvars = (STPTextPaneVars **) GetControlReference(theControl); - if (tpvars != NULL && IsControlVisible( theControl ) ) { + if (tpvars != NULL ) { state = HGetState((Handle) tpvars); HLock((Handle) tpvars); varsp = *tpvars; diff --git a/src/mac/textctrl.cpp b/src/mac/textctrl.cpp index 47506b8948..19bee0ff66 100644 --- a/src/mac/textctrl.cpp +++ b/src/mac/textctrl.cpp @@ -439,7 +439,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF /* set up locals */ focusResult = kControlFocusNoPart; tpvars = (STPTextPaneVars **) GetControlReference(theControl); - if (tpvars != NULL && IsControlVisible( theControl ) ) { + if (tpvars != NULL ) { state = HGetState((Handle) tpvars); HLock((Handle) tpvars); varsp = *tpvars;