question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in editor with keyboard text selection

See original GitHub issue

I think this is a bug, but this might be an obscure mis-feature. Here is an MVCE:

  1. Type a sentence with several words.
  2. Put the cursor somewhere towards the start, then either use Ctrl+Shift+Right (on Linux) or Alt+Shift+Right (on Mac) to select text word-by-word towards the end of the sentence. Select a few words like this.
  3. 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:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
benweetcommented, Jun 28, 2016

Should be fixed in v1.5.

1reaction
orschirocommented, Jun 17, 2016

I am sorry that I have closed it too quickly!

Can someone else on a Mac and Chrome please try to reproduce this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard text selection bug (TextEdit, plain text, macOS 12.4)
A different bug occurs when selecting lines both above and below the cursor after using Shift alone to select text in most situation:...
Read more >
BUG: Selecting block of text with SHIFT+ALT (+ Down, Left ...
Press “Alt + Shift + End” to select 'do' at line 11. Press down key on keyboard for several times. The cursor will...
Read more >
Bugs in text selection across blocks using shift+up/down - Bug ...
Text in blocks cannot be selected with Shift + Down if the cursor is not at the very beginning of the block; Only...
Read more >
Bug? Editor text selection disappearing · Issue #44186 · microsoft ...
my editor text selection disappearing - See Gif. If i reboot vscode, everything works normal. But after some time it comes back. It...
Read more >
Re: Selecting Text Deletes it When Typing Over It
For YEARS this has been an issue. I'm wring text, something is misspelled so I right click on it to fix it, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found