Logo Search packages:      
Sourcecode: widelands version File versions  Download package

void UI::Panel::focus (  )  [inherited]

Grab the keyboard focus, if it can

Definition at line 548 of file ui_panel.cc.

References UI::Panel::_focus, and UI::Panel::focus().

Referenced by UI::Panel::focus(), and UI::Edit_Box::handle_mousepress().


   // this assert was deleted, because
   // it happens, that a child can focus, but a parent
   // can't. but focus is called recursivly
   // assert(get_can_focus());

      if (!_parent || this == _modal)
      if (_parent->_focus == this)

      _parent->_focus = this;

Generated by  Doxygen 1.6.0   Back to index