1
0
Fork 0

return correct input object

This commit is contained in:
mfranz 2005-11-03 20:15:05 +00:00
parent d61bcae165
commit 7f3cd89be5

View file

@ -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;