changeset 5288:4b5b42fd1c9d

RT-33371 - Regression : Tab travsersal issue with Accordion
author mickf
date Mon, 07 Oct 2013 16:15:55 +0100
parents 70451c5d10df
children 68546f1ae3cd
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TitledPaneSkin.java
diffstat 1 files changed, 1 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Mon Oct 07 14:44:23 2013 +0200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TitledPaneSkin.java	Mon Oct 07 16:15:55 2013 +0100
@@ -534,7 +534,7 @@
         }
     }
 
-    class Content extends StackPane implements TraverseListener {
+    class Content extends StackPane {
         private Node content;
         private TraversalEngine engine;
         private Direction direction;
@@ -548,7 +548,6 @@
                     super.trav(owner, dir);
                 }
             };
-            engine.addTraverseListener(this);
             setImpl_traversalEngine(engine);
         }
 
@@ -564,20 +563,5 @@
         public final Node getContent() {
             return content;
         }
-
-        @Override public void onTraverse(Node node, Bounds bounds) {
-            int index = engine.registeredNodes.indexOf(node);
-
-            if (index == -1 && direction.equals(Direction.PREVIOUS)) {
-                getSkinnable().requestFocus();
-            }
-            if (index == -1 && direction.equals(Direction.NEXT)) {
-                // If the parent is an accordion we want to focus to go outside of the
-                // accordion and to the next focusable control.
-                if (isInsideAccordion()) {
-                    new TraversalEngine(getSkinnable(), false).trav(getSkinnable().getParent(), Direction.NEXT);
-                }
-            }
-        }
     }
 }