Fixed disabled ribbon items can be accessed anyway if you use keyboard and not mouse

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8465 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-04-26 17:39:07 +00:00
parent 1fb5469cb3
commit fd94266b45

View File

@ -586,6 +586,11 @@ EventPropagation RibbonWidget::transmitEvent(Widget* w, std::string& originator,
// bring focus back to enclosing ribbon widget
this->setFocusForPlayer( playerID );
if (m_selection[playerID] != -1)
{
if (m_children[m_selection[playerID]].m_deactivated) return EVENT_BLOCK;
}
return EVENT_LET;
}
// -----------------------------------------------------------------------------