Set if this panel can receive the keyboard focus
Definition at line 533 of file ui_panel.cc.
References UI::Panel::_focus, and UI::Panel::pf_can_focus.
Referenced by UI::Edit_Box::handle_key(), UI::Edit_Box::handle_mousepress(), and UI::Edit_Box::~Edit_Box().
if (yes) _flags |= pf_can_focus;
_flags &= ~pf_can_focus;
if (_parent && _parent->_focus == this)
_parent->_focus = 0;