-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0.1
Hi,
I can't tab through text fields, when one node in the children collection is invisible.
I expected to jump from textField1 directly to textField3, but it is not possible. The focus stays on textField1. Jumping backwards (shift + tab) doesn't work either.
See this example:
public class TestApp extends Application {
public static void main(String[] args) throws Exception {
launch(args);
}
public void start(Stage stage) throws Exception {
VBox vbox = new VBox();
TextField textField1 = new TextField();
TextField textField2 = new TextField();
textField2.setVisible(false);
TextField textField3 = new TextField();
vbox.getChildren().add(textField1);
vbox.getChildren().add(textField2);
vbox.getChildren().add(textField3);
Scene scene = new Scene(vbox);
stage.setScene(scene);
stage.show();
}
}
I can't tab through text fields, when one node in the children collection is invisible.
I expected to jump from textField1 directly to textField3, but it is not possible. The focus stays on textField1. Jumping backwards (shift + tab) doesn't work either.
See this example:
public class TestApp extends Application {
public static void main(String[] args) throws Exception {
launch(args);
}
public void start(Stage stage) throws Exception {
VBox vbox = new VBox();
TextField textField1 = new TextField();
TextField textField2 = new TextField();
textField2.setVisible(false);
TextField textField3 = new TextField();
vbox.getChildren().add(textField1);
vbox.getChildren().add(textField2);
vbox.getChildren().add(textField3);
Scene scene = new Scene(vbox);
stage.setScene(scene);
stage.show();
}
}