changeset 3837:93863dfb5745

RT-27637: [TextField] Mouse click makes the caret disappear.
author leifs
date Mon, 03 Jun 2013 16:18:30 -0700
parents 5a874c54b898
children 1ee27e0ef269
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Mon Jun 03 16:09:07 2013 -0700
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Mon Jun 03 16:18:30 2013 -0700
@@ -376,7 +376,7 @@
     }
 
     private void updateTextNodeCaretPos(int pos) {
-        if (isForwardBias()) {
+        if (pos == 0 || isForwardBias()) {
             textNode.setImpl_caretPosition(pos);
         } else {
             textNode.setImpl_caretPosition(pos - 1);