mojira.dev
MC-189700

The Search Items tab of the creative inventory is always in focus and cannot be deselected

The text box in the creative mode "Search Items" tab cannot be deslected, making it always focussed for the player. This will put any key press the player enters into the search bar, disallowing the player to opt out of this behavior in any way by deselecting the search bar. This is also irregular behavior when compared to other search bars like the social interactions screen, and the crafting recipe book which both can be intentionally deselected by clicking on buttons, or items.

Steps to Reproduce:

  1. In creative, open your inventory

  2. Go to the "Search Items" tab

  3. Enter any text into the box
    (Works as expected)

  4. Left or right on one of the following:

    1. An empty slot

    2. A filled slot

    3. The outside of the GUI

Observed Behavior:

No matter what the player presses, their focus will always be kept on the search bar box. Because of this, any key presses which have functionality (like the number keys MC-189975, or F key for the off hand) will not function as expected.

Expected Result:

When the player clicks on something that isn't the search bar itself, the focus would be lost. The player would be able to choose when they want to enter text, instead of always being allowed/forced to.

Screenshots/Videos:

[media]

Notes:

Related to MC-189700

Linked issues

Attachments

Comments 2

Can confirm in 20w51a.

Considering this report has an inactive owner and has not been maintained since 20w51a, I would like to request ownership of this issue.

user-16d15

[Mod] Jingy

(Unassigned)

Confirmed

UI

controls, inventory, textbox

1.16 Pre-release 5, 20w30a, 20w51a, 1.20.6, 24w20a

Retrieved