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

MC-198385 When accessing a screen which has a text field selected by default (such as the world selection menu) using the "space" key, a space gets typed into that text field Resolved MC-262956 When using space to press a button to a new screen with a text field, the space character will be added to that text field Resolved MC-262945 Displays no Singleplayer World when selecting with TAB and SPACE Resolved MC-261878 Using [Space] to press a Button that opens a Screen with an initially focused EditBox types in the EditBox Resolved MC-298309 Singleplayer interface doen't show saves when entering by TAB Resolved

Attachments

Comments 5

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).

This issue was fixed in 26.3 Snapshot 4.

Avoma

(Unassigned)

Confirmed

Platform

Normal

Accessibility

1.16.2, 1.17.1, 21w37a, 21w38a, 21w43a, , 1.21.1, 24w38a, 1.21.4, 1.21.7, 26.1.2

26.3 Snapshot 4

Retrieved