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 *ret;
|
||||
if(object->getType() & PUCLASS_GROUP)
|
||||
for (puObject *obj = ((puGroup *)object)->getFirstChild();
|
||||
obj; obj = obj->getNextObject())
|
||||
if (getActiveInputField(obj))
|
||||
return obj;
|
||||
if ((ret = getActiveInputField(obj)))
|
||||
return ret;
|
||||
|
||||
if (object->getType() & PUCLASS_INPUT && ((puInput *)object)->isAcceptingInput())
|
||||
return object;
|
||||
|
|
Loading…
Add table
Reference in a new issue