mirror of
https://github.com/fortressforever/fortressforever-2013.git
synced 2024-11-10 07:11:45 +00:00
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:
parent
0cff262bdd
commit
63c563747d
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue