Skip to content

Selection highlighting changes unpredictably when adjusting with Shift + Arrow keys #1920

Description

@okrick

I have difficulty making precise selections using the keyboard. I expected someone else might report this issue, but I have not seen it mentioned, so I am reporting it.

Please consider this an accessibility issue. Reliable keyboard selection behavior is important for users who depend on precise cursor movement and keyboard-based editing.

Steps to reproduce:

Case 1: Reducing a selection from the end of a line

  1. Position the cursor at the extreme left of a line.
  2. Press Shift + End to select to the end of the line.
  3. Press Shift + Left Arrow once.

Actual behavior:
The left side of the highlighted area moves right by one character, and the right side moves left by a variable number of characters.

Expected behavior:
The left side of the selection should remain fixed, and only the right side should move left by exactly one character.


Case 2: Reducing a selection from the beginning of a line

  1. Position the cursor at the end of a line.
  2. Press Shift + Home to select to the beginning of the line.
  3. Press Shift + Right Arrow once.

Actual behavior:
The left side of the highlighted area moves right by one character, and the right side moves left by a variable number of characters.

Expected behavior:
The left side of the selection should move right by exactly one character, and the right side should remain fixed.

This makes precise keyboard-based editing difficult, especially when trying to select or adjust small portions of text. Consistent selection behavior would improve usability and accessibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions