while (w != null) {
if (w instanceof RootPanel) {
// do nothing leave app
return;
} else if (w instanceof Component){
Component c = (Component)w;
if (c.getFocusSupport().isIgnore()) {
w = w.getParent();
} else {
w = null;
pe.stopEvent();
}
}
}
}
} else {
if (focusNextWidget(component)) {
pe.stopEvent();
} else {
if (!(component.getParent() instanceof RootPanel)) {
Widget p = component.getParent();
if (p instanceof Container) {
Container c = (Container)p;
if (c.getItemCount() == 1) {
if (c .getParent() instanceof RootPanel) {
pe.stopEvent();
onStepOutApp();
return;
}
}