- // And it also could have become hidden in the meanwhile, in this
- // case focus its parent instead.
- while ( !(*childLastFocused)->IsShown() )
+ // And it also could have become hidden in the meanwhile
+ // We want to focus on the deepest widget visible
+ wxWindow *deepestVisibleWindow = NULL;
+
+ while ( *childLastFocused )