Skip to content

Selecting a word with double click also selects one leading newline character #5867

@Tsourdox

Description

@Tsourdox

Version

2.7.0

Test Case

http://jsfiddle.net/79ubyp1a/

Information about environment

All it seems

Steps to reproduce

Create a texbox and enter two words with a newline character in between so second word ends up on a new row. Now select the second word by double clicking that word (and remove it to see the effect of this).

Expected Behavior

Only the word is selected so that the cursor stays on the second row when removed.

Actual Behavior

The word (including the newline char) is selected which puts the cursor is back on the top row when removing/replacing what's selected.

(This does not happen if you click and drag to select the second word)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions