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:
parent
1fb5469cb3
commit
fd94266b45
@ -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;
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user