Skip to content

Selecting text using keyboard can lock movement #474

@ghost

Description

Replicate

  1. Create two paragraphs that span multiple rows:

    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

  2. Move the caret to the beginning of a line near the end of the first paragraph (e.g., voluptate).

  3. Press Shift+End to highlight to the end of the line.

  4. Continue to hold Shift and tap the Down arrow until the caret is positioned at the start of the second line of the second paragraph.

  5. Release the Shift key.

  6. Press the Up arrow.

Expected Results
The selection clears and the caret moves up to the first line of the second paragraph.

Actual Results
The selection clears and the caret does not move. The caret is subsequently locked from navigating up or down using the keyboard.

Additional Details
The number of paragraphs is a red herring, but serves to show how the bug can be replicated every time. It can also be replicated using a single paragraph.

Work Around
Press Right or Left arrow to "unlock" the caret.

Version

compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '1.0.0-SNAPSHOT'
richtextfx-1.0.0-20170329.013835-146.jar

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