return correct input object
This commit is contained in:
parent
d61bcae165
commit
7f3cd89be5
1 changed files with 3 additions and 2 deletions
|
@ -81,11 +81,12 @@ puObject *fgPopup::getKeyObject(puObject *object, int key)
|
||||||
|
|
||||||
puObject *fgPopup::getActiveInputField(puObject *object)
|
puObject *fgPopup::getActiveInputField(puObject *object)
|
||||||
{
|
{
|
||||||
|
puObject *ret;
|
||||||
if(object->getType() & PUCLASS_GROUP)
|
if(object->getType() & PUCLASS_GROUP)
|
||||||
for (puObject *obj = ((puGroup *)object)->getFirstChild();
|
for (puObject *obj = ((puGroup *)object)->getFirstChild();
|
||||||
obj; obj = obj->getNextObject())
|
obj; obj = obj->getNextObject())
|
||||||
if (getActiveInputField(obj))
|
if ((ret = getActiveInputField(obj)))
|
||||||
return obj;
|
return ret;
|
||||||
|
|
||||||
if (object->getType() & PUCLASS_INPUT && ((puInput *)object)->isAcceptingInput())
|
if (object->getType() & PUCLASS_INPUT && ((puInput *)object)->isAcceptingInput())
|
||||||
return object;
|
return object;
|
||||||
|
|
Loading…
Add table
Reference in a new issue