# ZBasicDefaultWindowManager

class Tui::ZBasicDefaultWindowManager : public Tui::ZDefaultWidgetManager

  This class is a basic implementation of `Tui::ZDefaultWidgetManager`.

  For a given `Tui::ZWidget` – the dialog – passed in the constructor, it stores one decendent of the dialog as default widget.

  `bool Tui::ZDefaultWidgetManager::isDefaultWidgetActive() const` is reimplemented to return true iff there is a default widget and the widgets in the path of the currently focused widget to the dialog don’t accept `Enter`.

  If a widget accepts `Enter` is determined by sending a ZEventType::queryAcceptsEnter event to it and it the event is accepted the widget is assumed to accept `Enter` and thus the default window is not active.