changeset 139:0c5ec026b7ad

RT-18413: [ListView] focused index is not proper, when shift+home pressed.
author jgiles
date Fri, 09 Dec 2011 16:53:06 +1000
parents 78c10cd8a4f8
children fbbfe5a37fa1 d5ba659414cd
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ListViewBehavior.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ListViewBehavior.java	Fri Dec 09 16:44:16 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ListViewBehavior.java	Fri Dec 09 16:53:06 2011 +1000
@@ -563,7 +563,9 @@
 
         sm.clearSelection();
         sm.selectRange(0, leadIndex + 1);
-//        getControl().getFocusModel().focus(0);
+        
+        // RT-18413: Focus must go to first row
+        getControl().getFocusModel().focus(0);
 
         if (onMoveToFirstCell != null) onMoveToFirstCell.run();
     }