Closing tabs now selects the next tab's content node
@@ -49,6 +49,9 @@ public class ViewportTabs extends TabPane {
Tab current = getSelectionModel().getSelectedItem();
if(current != null)
closeTab(current);
+ Tab newCurrent = getSelectionModel().getSelectedItem();
+ if(newCurrent != null)
+ newCurrent.getContent().requestFocus();
}
});
}
