changeset 5529:24e60f5070be

RT-28132: [TableView] Focus in editing cell. Reviewed-by: psomashe
author jgiles
date Fri, 25 Oct 2013 10:38:17 +1300
parents f951998ab143
children 0a99458da1dd
files modules/controls/src/main/java/javafx/scene/control/cell/CellUtils.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/cell/CellUtils.java	Thu Oct 24 17:52:04 2013 -0700
+++ b/modules/controls/src/main/java/javafx/scene/control/cell/CellUtils.java	Fri Oct 25 10:38:17 2013 +1300
@@ -227,6 +227,10 @@
         }
         
         textField.selectAll();
+
+        // requesting focus so that key input can immediately go into the
+        // TextField (see RT-28132)
+        textField.requestFocus();
     }
     
     static <T> void cancelEdit(Cell<T> cell, final StringConverter<T> converter, Node graphic) {