mojira.dev
MC-140646

Text fields don't scroll while selecting text with Shift

The bug

If you have a text, in the chat box or in a command block or structure block or etc, that is too long and can't be showed up completely, and you try to select a part of it with holding Shift+Arrow, the selection continues beyond whats already being displayed in the text field but the text field doesn't scroll to see what you are selecting.

Examples

The bug in action:

[media]
[media]

What is supposed to happen:

[media]

Code analysis

Code analysis by @unknown in this comment.

Linked issues

MC-141536 Command block text does not scroll when holding shift Resolved MC-144715 command and chat text dont move when selecting Resolved MC-146762 Text does not scroll as the position of the cursor changes in the command block. Resolved MC-147861 Command Block Copying Resolved MC-148075 When selecting text in a command block the text does not scroll Resolved

Attachments

Comments 37

This is still a problematic bug to going into 1.14 release. I understand that most hardened creators may not come across this issue working with functions or pasting everything into command blocks but some of us like to again select text in game larger than the visible text box.

I would like to provide information on the "command block" part of this bug:

The bug

When selecting text in a command block the text does not scroll.

How to reproduce

Try to make a selection of text (with Shift+Arrows) in a command block on a long command that goes beyond the frame.

Example

  • Here is what is excepted:

[media]
  • Here is what is happening now in 1.14:

[media]

Note

This bug does not occur in 1.13, 1.13.1, 1.13.2 and earlier versions. It is only a problem in 1.14. Before, everything worked fine.

This bug is really annoying for map creators so please, fix this bug before the official release of 1.14!

Still in 1.14 Release! It is very bad for map creators! Especially that the bug does not have to be hard to fix...

I want to make sure that, when you fix this bug, also look at this one. Both are related to text field and Shift key.
https://bugs.mojang.com/browse/MC-147766

Still in 1.14.1 Release

27 more comments

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 22w18a.

Can confirm in 1.19.2.

TomatoClownfish

Can confirm in 1.19.3.

FACS01

gegy

Confirmed

Important

UI

controls, selecting, shift, text, text-field

Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03b, Minecraft 19w03c, ..., 1.18.2, 22w11a, 22w18a, 1.19.2, 1.19.3

23w31a

Retrieved