mojira.dev
MC-259692

Sneaking and sprinting states are activated or toggled unexpectedly when releasing their input keys while an interface was just previously closed

The Bug:

Sneaking and sprinting states are activated or toggled unexpectedly when releasing their input keys while an interface was just previously closed.

Steps to Reproduce:

  1. Navigate to your accessibility settings and set the "Sneak" option to "Toggle".

  2. Navigate to the key binds menu and set the "Sneak" key to "Left Shift".

  3. Exit this menu, enter a world, and switch into creative mode.

  4. Obtain a diamond helmet and open your inventory.

  5. Equip the diamond helmet via shift-clicking, but as soon as you do this, quickly close your inventory.

  6. Observe how your player is now sneaking.

  7. Take note as to whether or not sneaking and sprinting states are activated or toggled unexpectedly when releasing their input keys while an interface was just previously closed.

Observed Behavior:

Sneaking and sprinting states are activated or toggled when releasing their input keys while an interface was just previously closed.

Expected Behavior:

Sneaking and sprinting states would not be activated or toggled when releasing their input keys while an interface was just previously closed. 

Linked issues

Attachments

Comments 2

i can confirm this issue

Update on this issue:

Further investigation and experimentation concludes that this issue isn't exclusive to accessibility options that are set to "Toggle". The core problem here is that sneaking and sprinting states are activated or toggled when releasing their input keys while an interface was just previously closed.

For example, lets say you're riding a striding and you're organizing your inventory by shift-clicking items. If you were to shift-click an item and then quickly close your inventory, you will be dismounted from the strider, and this would be the incorrect and unexpected behavior.

I've updated this ticket's title and description to mention the core problem and I'm just making a note of my changes here.

Avoma

Filip Randenbäck

Community Consensus

Platform

Normal

Accessibility, UI

Minecraft 1.12.2, 1.15.2, 20w11a, 20w27a, 20w30a, ..., 24w10a, 1.21, 1.21.4, 1.21.5, 25w21a

Future Update

Retrieved