We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07fc7a1 commit ece0cdeCopy full SHA for ece0cde
1 file changed
richtextfx/src/main/java/org/fxmisc/richtext/skin/StyledTextAreaBehavior.java
@@ -424,7 +424,8 @@ private void mousePressed(MouseEvent e) {
424
private void firstLeftPress(CharacterHit hit) {
425
clearTargetCaretOffset();
426
IndexRange selection = area.getSelection();
427
- if(selection.getLength() != 0 &&
+ if(area.isEditable() &&
428
+ selection.getLength() != 0 &&
429
hit.getCharacterIndex() >= selection.getStart() &&
430
hit.getCharacterIndex() < selection.getEnd()) {
431
// press inside selection
0 commit comments