if (component instanceof ContentPanel) {
focusNextWidget(component);
} else {
ContentPanel panel = (ContentPanel) component.getParent();
if (!pe.isShiftKey() && panel.indexOf(component) == panel.getItemCount() - 1) {
if (panel.getBottomComponent() != null) {
focusWidget(panel.getBottomComponent());
} else if (panel.getHeader().getToolCount() > 0) {
focusWidget(panel.getHeader().getTool(0));
}