Redglyph
Member
- Affected version
- 2.2
Description
When the user selects the text with the keyboard by moving the cursor UP, using END and HOME doesn't work correctly.
Those keys change the end of the selection (at the bottom) instead of moving the start of the selection (where the cursor is).
This happens frequently when pasting a few line of text, for example when I want to format them or include them in a quote. I paste, select up (faster than using the mouse), press HOME to select from the start of the line, and see this bug.
Steps to reproduce
This is 100% reproducible, including here on this very website.
Example
Type or copy the following lines:
Move at the end of the last line, after 'b'. Press shift, go up to lines, and press HOME.
You would expect the selection to grow to the beginning of the first line.
This is what you will get:
When the user selects the text with the keyboard by moving the cursor UP, using END and HOME doesn't work correctly.
Those keys change the end of the selection (at the bottom) instead of moving the start of the selection (where the cursor is).
This happens frequently when pasting a few line of text, for example when I want to format them or include them in a quote. I paste, select up (faster than using the mouse), press HOME to select from the start of the line, and see this bug.
Steps to reproduce
- move at the end of the text to select
- press the SHIFT+UP arrow key to move up one or several lines
- press SHIFT+END or SHIFT+HOME
This is 100% reproducible, including here on this very website.
Example
Type or copy the following lines:
Code:
abcd
abcd
ab
Move at the end of the last line, after 'b'. Press shift, go up to lines, and press HOME.
You would expect the selection to grow to the beginning of the first line.
This is what you will get:
- before pressing SHIFT+HOME:
- this is the outcome after pressing SHIFT+HOME (the end of the selection changed):
- this is what was expected instead (the start of the selection - where the cursor is - changed):