mojira.dev
MC-118107

The action of some keys continuously repeats if you hold them

The bug

The following actions will be repeated when the key to which they are bound is held. The list may be incomplete.

  • Hiding the heads-up-display (F1)

  • Debug key bindings (F3 + debug key)

  • "Toggle Perspective" (F5)

  • "Toggle Cinematic Camera"

  • "Drop Selected Item" (Q) — This may be intended, since this behavior allegedly already existed in 1.7.10 and earlier. If this is really intended, it might be good if that was confirmed.

  • "Open/Close Inventory" (E) — See MC-93437.

  • "Social Interactions Screen" (P) — With the fix for MC-268236 in 24w09a, this can no longer be reproduced.

  • Space after clicking the recipe book in the inventory

  • Toggling the shader while spectating a creeper, cave spider, enderman, or spider (F4)

  • Opening the game menu (Esc)

  • Number keys — Number keys should only be intended when editing a text field.

  • "Swap Item With Off Hand" (F)

This also occurs with the actions "Attack/Destroy", "Pick Block", and "Use Item/Place Block" if they are bound to keys, which is tracked separately in MC-129132.

Steps to reproduce

  1. Take an item stack consisting of several items in the hand.

  2. Hold down the Q button.

  3. Observe how fast the player character throws the items.

Linked issues

MC-273057 Since the 1.13 update, players can now drop the items very quickly by holding down Q Resolved MC-197546 Inventory button Resolved MC-266773 holding inventory button creates epilectic behaviour Resolved MC-266671 Mining using mouse is slightly Inefficient Resolved MC-263891 Toggle Perspective can cause flickering effects Resolved

Attachments

Comments 70

This also applies if you change, for example, the attack on the "E" key and keep it pressed down, hits too fast until you press another key. Or if you switch to the "F" key to put blocks, it puts them very quickly too.

I use these keys to play this way instead of with the mouse and it is very annoying.

I hope it can be fixed before the release!
Confirmed on 17w45b. Win10 - 64bit - Java: 1.8.0_25 64bit

@@unknown which version are you confirming this for?

@Marcono1234 Edited 😉 17w45b

Confirmed on 17w48a

Still present in 18w01a

60 more comments

Can confirm in 1.18.2.

I imagine that at least holding Q is intended behavior, as in 22w42a MC-135973 "Can't hold Q to drop items rapidly from container inventories" was fixed.

This also affects the 1-9 number keys (Hotbar Slots 1-9), F (Offhand), Ctrl + B (Toggle Narrator), C + 1-9 (Save creative hotbar), X + 1-9 (Load creative hotbar)

Additionally, there seems to be some other odd behaviour when holding the 1-9 keys. When not in the inventory, holding these keys seems to queue button presses for after you let go of the button. For example, by holding the 9 key for a few seconds, it will continue thinking you're holding 9 for 1-2 seconds after releasing it, which can cause you to switch to the 9th hotbar slot, show/hide the hotbar in spectator mode, or save/load creative hotbars after releasing the button.

The switch off-hand is also important. When you hold the key for that it makes a lot of noise especially if you do it holding armor pieces. You can't hear the noise but other people can.

As of 23w06a the pause menu (esc key) is also affected.

JUE13

(Unassigned)

1256324

Confirmed

Platform

Normal

Accessibility, UI

controls

Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, ..., 1.20.6 Release Candidate 1, 1.20.6, 1.21 Pre-Release 3, 1.21, 1.21.8

Retrieved