TextFieldTTFDefaultTest: Fixed can't take input from the keyboard.

This commit is contained in:
WenhaiLin 2015-04-14 18:04:35 +08:00
parent 793f7cd1e7
commit 5f4fd20b06
1 changed files with 2 additions and 2 deletions

View File

@ -107,10 +107,10 @@ void KeyboardNotificationLayer::onTouchEnded(Touch *touch, Event *event)
// decide the trackNode is clicked. // decide the trackNode is clicked.
Rect rect; Rect rect;
auto point = convertTouchToNodeSpaceAR(touch); auto point = _trackNode->convertTouchToNodeSpace(touch);
CCLOG("KeyboardNotificationLayer:clickedAt(%f,%f)", point.x, point.y); CCLOG("KeyboardNotificationLayer:clickedAt(%f,%f)", point.x, point.y);
rect = getRect(_trackNode); rect.size = _trackNode->getContentSize();
CCLOG("KeyboardNotificationLayer:TrackNode at(origin:%f,%f, size:%f,%f)", CCLOG("KeyboardNotificationLayer:TrackNode at(origin:%f,%f, size:%f,%f)",
rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);