Search Unity

Disable tab key

Discussion in 'UI Toolkit' started by DrSeltsam, Apr 30, 2020.

  1. DrSeltsam

    DrSeltsam

    Joined:
    Jul 24, 2019
    Posts:
    101
    When pressing tab on the keyboard, the next focusable UI element gets focused automatically. Is there a way to disable this behaviour? I've tried to set the tab index on every focusable element to 0, but that doesn't seem to help.

    I'm using a custom input wrapper (derived from UIElements.Runtime.InputWrapper), but there is apparently no way to get control over keyboard input.
     
  2. Hinuko

    Hinuko

    Joined:
    May 13, 2017
    Posts:
    7
    RunninglVlan likes this.