From 63c563747d817c95c7790917cc51a9f47f084eaf Mon Sep 17 00:00:00 2001 From: squeek Date: Sun, 10 Nov 2013 07:32:39 +0000 Subject: [PATCH] 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. --- mp/src/vgui2/vgui_controls/Panel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mp/src/vgui2/vgui_controls/Panel.cpp b/mp/src/vgui2/vgui_controls/Panel.cpp index 7fb2e630..049592bd 100644 --- a/mp/src/vgui2/vgui_controls/Panel.cpp +++ b/mp/src/vgui2/vgui_controls/Panel.cpp @@ -3419,7 +3419,9 @@ 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() ); + // 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()); OnRequestFocus(GetVPanel(), NULL); }