[DEBUG edn#2] find focus error

This commit is contained in:
Edouard DUPIN 2014-02-12 09:34:15 +01:00
parent 4ec5216da1
commit 973b6fdec7

View File

@ -93,9 +93,10 @@ void ewol::widget::Manager::focusKeep(ewol::Widget* _newWidget) {
if (NULL != m_focusWidgetCurrent) {
EWOL_DEBUG("Rm focus on WidgetID=" << m_focusWidgetCurrent->getId() );
m_focusWidgetCurrent->rmFocus();
m_focusWidgetCurrent = NULL;
}
if (false == _newWidget->canHaveFocus()) {
EWOL_VERBOSE("Widget can not have focus, id=" << 9999999999.999);
EWOL_VERBOSE("Widget can not have focus, id=" << _newWidget->getId() );
return;
}
m_focusWidgetCurrent = _newWidget;