cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RARgames
New member
Status: New idea

In other editors/browsers (e.g. Notepad++, Chrome, VS Code), when selecting a text block in multi-line textarea, it selects extra non-existing character at the end of line. When I try to move cursor without selection, there is no extra character at the end of line.

otherBrowser.png

I'd like to propose this to be the default textarea behavior in Firefox. This has multiple pros and I think it is more intuitive, especially for users coming from other browsers, text editors etc. It gives the user the ability to see what actually is selected. This behavior can be useful if textarea has additional features like moving blocks of text using Alt+Arrows and users are mainly using keyboard to navigate in the textarea.

Case 1:
Picture 1 - Firefox, Picture 2 - Chrome
RARgames_1-1691445944230.pngRARgames_2-1691446137776.png
In this case the Firefox user is not sure if the selected text is "asfadsaa", "\nasfdsaa", "asfadsaa\n" or "\nasfadsaa\n". There is no visual representation of selected text.
In Chrome example, user can clearly see that the selected text is "\nasfadsaa\n".

Case 2:
Picture 1 - Firefox, Picture 2 - Chrome
RARgames_0-1691445905985.pngRARgames_3-1691446252112.png
In this case there are even more possibilities, so I'm not going to list them all. In the 2nd picture, user can clearly see that the selection is "\na".

 

1 Comment
Status changed to: New idea
Jon
Community Manager
Community Manager

Thanks for submitting an idea to the Mozilla Connect community! Your idea is now open to votes (aka kudos) and comments.