diff --git a/richtextfx/src/main/java/org/fxmisc/richtext/LineSelection.java b/richtextfx/src/main/java/org/fxmisc/richtext/LineSelection.java index 8660a5c4..89d75258 100644 --- a/richtextfx/src/main/java/org/fxmisc/richtext/LineSelection.java +++ b/richtextfx/src/main/java/org/fxmisc/richtext/LineSelection.java @@ -44,4 +44,11 @@ public void selectCurrentLine() int end = getArea().getAbsolutePosition( p, getArea().getCurrentLineEndInParargraph() ); super.selectRange( start, (end > start) ? end : start+1 ); // +1 for empty lines } + + @Override + public void deselect() + { + int startPos = getStartPosition(); + super.selectRange( startPos, startPos ); + } }