mojira.dev
MC-147731

'Key Down' event handling is broken

This bug can be triggered by just holding a key that should do a single event once per stroke. For example:

  • If you hold E to open your inventory, it'll open and close it over and over again until you stop pressing E; it should just open your inventory if closed and vice-versa and stay that way.

  • If you hold ESC to pause the game, it'll pause and unpause the game over and over again until you stop pressing ESC; it should just pause the game if unpause and vice-versa and stay that way.

 

I explain briefly how and why this happens and demonstrate how to reproduce this bug in [this video|https://youtu.be/TZjc7w6LEvA.]

 

I cannot guarantee that this bug will work in other operating systems, as I only know how Windows sends key events to the applications and I have not tested this in other operating systems.

 

Linked issues

Comments 0

No comments.

Fefo6644

(Unassigned)

Unconfirmed

Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b

Retrieved