]> git.saurik.com Git - wxWidgets.git/commitdiff
focus setting must be possible even when not shown yet
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 11 Sep 2003 18:59:06 +0000 (18:59 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 11 Sep 2003 18:59:06 +0000 (18:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp
src/mac/textctrl.cpp

index 47506b8948126ed0e2bd53f3afc64de5b16b4e12..19bee0ff660adc519f6fb926ec3e1a30aa1c5ccc 100644 (file)
@@ -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;
index 47506b8948126ed0e2bd53f3afc64de5b16b4e12..19bee0ff660adc519f6fb926ec3e1a30aa1c5ccc 100644 (file)
@@ -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;