Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118927

MenuBar doesn't receive focus on TAB press

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Environment:

      8.0b104

      Description

      Run the code:

          @Override
          public void start(Stage stage) throws Exception {
              VBox root = new VBox();
              root.getChildren().addAll(
                      MenuBarBuilder.create().menus(
                      MenuBuilder.create().text("File").items(MenuItemBuilder.create().text("New").build()).build(),
                      MenuBuilder.create().text("Help").items(MenuItemBuilder.create().text("About").build()).build()).build(), new Button("Button"));
              Scene scene = new Scene(root, 500, 500);
              stage.setScene(scene);
              stage.show();
              stage.setTitle(VersionInfo.getRuntimeVersion());
          }

      Click the button
      Press the TAB key
      Focus is on the button still.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psomashe Parvathi Somashekar (Inactive)
              Reporter:
              akirov Alexander Kirov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: