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 :-)
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 :-)