Skip to content

Commit b9eea16

Browse files
committed
Add .caret style class to the caret node (Path).
Resolves #92.
1 parent a098da6 commit b9eea16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

richtextfx/src/main/java/org/fxmisc/richtext/skin/ParagraphText.java

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public ParagraphText(Paragraph<S> par, BiConsumer<Text, S> applyStyle) {
9696
getChildren().add(selectionShape);
9797

9898
// caret
99+
caretShape.getStyleClass().add("caret");
99100
caretShape.setManaged(false);
100101
caretShape.setStrokeWidth(1);
101102
caretShape.layoutXProperty().bind(leftInset);

0 commit comments

Comments
 (0)