Search Unity

Can't use arrow keys on UI dropdown

Discussion in 'Input System' started by Kawottex, Aug 1, 2019.

  1. Kawottex

    Kawottex

    Joined:
    Feb 23, 2019
    Posts:
    11
    Hello,

    I am currently trying to use the arrow keys to navigate on a UI dropdown but the New Input System seems to conflict with it and it does nothing.

    I've tried to manually update the selected value of the dropdown every time an arrow key is pressed, but it only update the value in the main square and not the selected option in the list.

    Code (CSharp):
    1. dropdownResolution.value = newVal;
    2. dropdownResolution.RefreshShownValue();
    Moreover, the list doesn't scroll to the bottom (or to the top) if I select a value not displayed (for example, if I select the 8th value of the list, the list doesn't still move).

    upload_2019-8-1_23-13-40.png


    Do you have any idea how to fix this ?

    Thanks,
    Kevin B.
     
  2. Kawottex

    Kawottex

    Joined:
    Feb 23, 2019
    Posts:
    11
    Hello,
    Is there anyone who could help me on this problem ?

    Thank you