Search Unity

Bug Using Tab for switching through ui inputfields is broken in UIToolkit 1.0.0-preview.9

Discussion in 'UI Toolkit' started by manuelgoellnitz, Sep 28, 2020.

  1. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    397
    I have login and password inputfields next to each other.
    In preview.8 I could get from login to password by the Tab key.

    In preview.9 this is broken: When the login is focused and i press Tab an inputfield in a different UIDocument get's the focus not the password inputfield.

    Playing around with the tabindex-parameter does not change that effect.

    And further more: If that other inputfield has the focus from the tab, It doesn't lose it, when i click on the login or password inputfield although the Caret-indicator appears. Aka the other inputfields no longer register input after i klick on them to get them the focus.
     
  2. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    Good catch. This is indeed a regression. We're working on a fix, hopefully it will be part of the next preview.

    Thanks for reporting the bug on such short notice!
     
    manuelgoellnitz likes this.
  3. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    397
    In the changelog of UI Builder 1.0.0.0preview9 there is an entry "Fixed Tab Index attribute field label in the Attributes Inspector."

    I don't know what that fixed but it has no effect on the bug :(
     
  4. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    This fix was just on the UI Builder side to properly reflect the state of this attribute in the Builder's Inspector. It does not address any issues in the core UI Toolkit API.