Right clicking text box selects all text

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
Lilly
Inserter
Inserter
Posts: 49
Joined: Mon Apr 11, 2016 6:42 pm
Contact:

Right clicking text box selects all text

Post by Lilly »

TL;DR
When right-clicking a non-focused, single line textbox select the text contained therein.

What ?
The current behavior for non focused single line textboxes is that when you click them they get focused, which allows you to type in them. There is no difference between using the left or right mouse button.

I suggest to slightly change the right mouse click to not only focus the textbox, but also select the text contained therein.
Example
Take the text box in the combinator constant value entry dialog. Currently changing the number requires the user to click the textbox, hit backspace several times and then enter the new value.
(Or double click it, which clears it, which I did not know about)
Screenshot_20210623_184345.png
Screenshot_20210623_184345.png (22.95 KiB) Viewed 766 times
Why ?
This behavior seems to be the common behavior in modded minecraft. It allows the user to:
  • quickly change the value, as entering a new value will replace the selected text.
  • quickly copy it by hitting ctrl+c.
Note
While writing this suggestion, I learned that double clicking the text box clears it. This at least allows the player to quickly change the value. As an alternative to changing the right click action, this can be changed to selecting the text instead. This is similar to how textboxes work in other applications, were double clicking would select the word being hovered. Though double clicking is slightly slower than right clicking.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Right clicking text box selects all text

Post by ssilk »

Right, this doubleclick to clear is from the UX really strange, nobody would await to delete a value in a textbox, when double click. Especially when selecting it would do the same functionality in the end. But handy, that I now know about it. :D
I looks for me like a compromise: there was no time left to select the text on focus, but double click was simple to implement. :roll: 8-)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Koub
Global Moderator
Global Moderator
Posts: 7203
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Right clicking text box selects all text

Post by Koub »

Somehow related :
viewtopic.php?f=6&t=96237

I'm used to "select text on left click" in textfields. That's the behaviour I'd like to always have, and it differs from your suggestion. Maybe default behaviour is OS specific, and people used to Macs or UNIX/Linux will have different expectations from mine, having been mostly a Windows user the last 20ish years.
Koub - Please consider English is not my native language.

Post Reply

Return to “Ideas and Suggestions”