Skip to content

Commit aedd48e

Browse files
committed
Merge pull request cocos2d#14615 from xiaofeng11/v3_testBugFix
Remove default focus item from "Node:UI->1:GUI Dynamic Create Test->4:Focus Test"
2 parents 6662817 + 724e9b4 commit aedd48e

File tree

1 file changed

+0
-3
lines changed
  • tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest

1 file changed

+0
-3
lines changed

tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,6 @@ bool UIFocusTestVertical::init()
238238
w->setTag(i);
239239
w->addTouchEventListener(CC_CALLBACK_2(UIFocusTestVertical::onImageViewClicked, this));
240240
_verticalLayout->addChild(w);
241-
if (i == 2) {
242-
w->requestFocus();
243-
}
244241
}
245242

246243
_loopText = Text::create("loop enabled", "Arial", 20);

0 commit comments

Comments
 (0)