changeset 131:1b515bf64da6

RT-18430: [TableView] Lost focus in multi-cell selection mode
author jgiles
date Fri, 09 Dec 2011 07:43:33 +1000
parents d06073f52116
children 88dc0c2f404e
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TableViewBehavior.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TableViewBehavior.java	Thu Dec 08 18:03:49 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TableViewBehavior.java	Fri Dec 09 07:43:33 2011 +1000
@@ -870,6 +870,7 @@
         
         if (sm.isSelected(focusedCell.getRow(), focusedCell.getTableColumn())) {
             sm.clearSelection(focusedCell.getRow(), focusedCell.getTableColumn());
+            fm.focus(focusedCell.getRow(), focusedCell.getTableColumn());
         } else {
             sm.select(focusedCell.getRow(), focusedCell.getTableColumn());
         }