Commented out the IsKeyBoardInputEnabled assert in Panel::RequestFocus, as panels should be able to request focus without having keyboard input enabled (example: scoreboard). Really don't know why this assert existed.

This commit is contained in:
squeek 2013-11-10 07:32:39 +00:00
parent 0cff262bdd
commit 63c563747d

View file

@ -3419,7 +3419,9 @@ bool Panel::RequestFocusNext(VPANEL panel)
void Panel::RequestFocus(int direction) void Panel::RequestFocus(int direction)
{ {
// NOTE: This doesn't make any sense if we don't have keyboard input enabled // NOTE: This doesn't make any sense if we don't have keyboard input enabled
Assert( ( IsX360() || IsConsoleStylePanel() ) || IsKeyBoardInputEnabled() ); // FF --> squeek: Not sure what this assert is for, as presumably we do want panels without keyboard input to be able to request focus (example: scoreboard)
//Assert( ( IsX360() || IsConsoleStylePanel() ) || IsKeyBoardInputEnabled() );
// FF <--
// ivgui()->DPrintf2("RequestFocus(%s, %s)\n", GetName(), GetClassName()); // ivgui()->DPrintf2("RequestFocus(%s, %s)\n", GetName(), GetClassName());
OnRequestFocus(GetVPanel(), NULL); OnRequestFocus(GetVPanel(), NULL);
} }