Auto scroll content with selected item

Hello,

I have a dropdown menu, working fine:

Using mouse/touch. But, I would like to use now the keyboard/joystick with buttons to control it.

I can select the dropdown items and navigate, you can notice the fourth item is selected (“Atlantis”… in red).

But, if I go down to the next item bellow it… using only keyboard for example… the content dont scrolldown automatically…

How can I do that?

set slider position manually to item position y / scroll bounds height

Where do I have the info of which item is selected?

Well, I solve this way

{
TemplateViewPortContentRectTransform.anchoredPosition += new Vector2(0,
TemplateViewPortContentItemRectTransform.sizeDelta.y);
}```

With some name changes to explain better what are the objetcs... And equivalent code to go up.