Bug in editor with keyboard text selection
See original GitHub issueI think this is a bug, but this might be an obscure mis-feature. Here is an MVCE:
- Type a sentence with several words.
- Put the cursor somewhere towards the start, then either use
Ctrl+Shift+Right
(on Linux) orAlt+Shift+Right
(on Mac) to select text word-by-word towards the end of the sentence. Select a few words like this. - Now while the text is selected, type
Shift+Left
(on both Linux and Mac).
The expected behaviour (with every text editor I’ve used) is that you should unselect character-by-character from the right. But instead it seems to select additional characters from the left.
On a related note, a “feature” which I originally thought was nice, but which might actually be a related bug, is that if I use Cmd+Shift+Right
(on Mac) to select until the end of the line, and then Cmd+Shift+Left
, I would expect the cursor to go back to where it was and unselect all the text on the line, but instead it selects the entire line until the beginning on the left.
Edit: Actually it is definitely a bug because if you select word-by-word towards the left, and then character-by-character towards the right, it does yield the expected behaviour of unselecting from the left instead of selecting more on the right.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Should be fixed in v1.5.
I am sorry that I have closed it too quickly!
Can someone else on a Mac and Chrome please try to reproduce this?