Skip to content

Commit

Permalink
Remove unnecessary assertion in Panel::RequestFocus() method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcwatters committed Dec 25, 2024
1 parent 9cfe6f8 commit 98da10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/vgui2/vgui_controls/Panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3539,7 +3539,7 @@ bool Panel::RequestFocusNext(VPANEL panel)
void Panel::RequestFocus(int direction)
{
// NOTE: This doesn't make any sense if we don't have keyboard input enabled
Assert( ( IsX360() || IsConsoleStylePanel() ) || IsKeyBoardInputEnabled() );
// Assert( ( IsX360() || IsConsoleStylePanel() ) || IsKeyBoardInputEnabled() );
// ivgui()->DPrintf2("RequestFocus(%s, %s)\n", GetName(), GetClassName());
OnRequestFocus(GetVPanel(), NULL);
}
Expand Down

0 comments on commit 98da10e

Please sign in to comment.