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:
Navigate to your accessibility settings and set the "Sneak" option to "Toggle".
Navigate to the key binds menu and set the "Sneak" key to "Left Shift".
Exit this menu, enter a world, and switch into creative mode.
Obtain a diamond helmet and open your inventory.
Equip the diamond helmet via shift-clicking, but as soon as you do this, quickly close your inventory.
Observe how your player is now sneaking.
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
is duplicated by 3
Attachments
Comments 2
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.
i can confirm this issue