mojira.dev
MC-233888

Pressing the SPACE or ENTER keys to interact with elements results in the pressed key being executed again

The Bug:

Pressing the SPACE or ENTER keys to interact with elements results in the pressed key being executed again.

This can also be seen when exiting GUIs by pressing the "Done" button. Additionally, clicking on a button that will have a search field in focus after interacting with it, will result in the search field being inputted with a SPACE.

Steps to Reproduce:

  1. Hit the ESC key on your keyboard.

  2. Press the TAB key once to focus the "Back to Game" button.

  3. Now press the SPACE key.

  4. Take note of how your character jumps indicating that pressing the SPACE key to interact with a button results in the SPACE key being executed again.

Observed Behavior:

Pressing the SPACE or ENTER keys to interact with elements results in the pressed key being executed again.

Expected Behavior:

Pressing the SPACE or ENTER keys to interact with elements would not result in the pressed key being executed again.

Linked issues

Attachments

Comments 3

Possibly relates to MC-169163.

Also observable from the title menu. When you use TAB to select singleplayer mode, and press space to inter the world selection screen, it immediately puts a space into the search bar (reducing the world list to just those that don't have a space in them).

Avoma

(Unassigned)

Confirmed

Platform

Normal

Accessibility

1.16.2, 1.17.1, 21w37a, 21w38a, 21w43a, ..., 1.21, 1.21.1, 24w38a, 1.21.4, 1.21.7

Retrieved