changeset 137:0d10aa415470

RT-18412: [ListView] Shift+end doesn't select the last element.
author jgiles
date Fri, 09 Dec 2011 16:32:35 +1000
parents 3ec084f7363e
children 78c10cd8a4f8
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ListViewBehavior.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ListViewBehavior.java	Fri Dec 09 15:45:10 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ListViewBehavior.java	Fri Dec 09 16:32:35 2011 +1000
@@ -576,7 +576,7 @@
         }
         
         sm.clearSelection();
-        sm.selectRange(leadIndex, getRowCount() - 1);
+        sm.selectRange(leadIndex, getRowCount());
 
         if (onMoveToLastCell != null) onMoveToLastCell.run();
     }