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

TableView, ListView: removing first selected item disables keyboard navigation

XMLWordPrintable

      use your favorite table/listView example (f.i. the one in RT-38491)
      add code to remove the first item, f.i.

              table.addEventFilter(KeyEvent.KEY_PRESSED, e -> {
                  if (e.getCode() == KeyCode.F6) {
                      data.remove(0);
                  }
              });

      To reproduce:
      - click to select and focus first item
      - press F6 to remove selected first item
      - press DOWN
      - expected: selection moved to second row
      - actual: nothing happens

      seems to be related to focus cleared (after press F6, notice that the new first (formerly second) item is selected but not focused)

      (couldn't test yet against a recent u40 preview, would be happy if fixed meanwhile :-)


            jgiles Jonathan Giles
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: