We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35220f commit 25ebc97Copy full SHA for 25ebc97
1 file changed
richtextfx/src/main/java/org/fxmisc/richtext/LineSelection.java
@@ -44,4 +44,11 @@ public void selectCurrentLine()
44
int end = getArea().getAbsolutePosition( p, getArea().getCurrentLineEndInParargraph() );
45
super.selectRange( start, (end > start) ? end : start+1 ); // +1 for empty lines
46
}
47
+
48
+ @Override
49
+ public void deselect()
50
+ {
51
+ int startPos = getStartPosition();
52
+ super.selectRange( startPos, startPos );
53
+ }
54
0 commit comments