From 8bdeaeabb7a1c4a05f9ef82f0b40042c699c14d3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 12 Dec 2010 23:16:37 +0100 Subject: [PATCH] Move CTRL-TAB case down: between MOUSE1 and ESCAPE isn't that cute, aesthetically talking ;) --- qcsrc/client/hud.qc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index ee1597072..b7556a189 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1144,7 +1144,15 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) return true; } } - else if(nPrimary == K_TAB && hudShiftState & S_CTRL) //TODO: move this case down + else if(nPrimary == K_ESCAPE) + { + if (bInputType == 1) + return true; + menu_enabled = 1; + menu_enabled_time = time; + localcmd("menu_showhudexit\n"); + } + else if(nPrimary == K_TAB && hudShiftState & S_CTRL) // select and highlight another panel { if (bInputType == 1 || mouseClicked) return true; @@ -1228,14 +1236,6 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) tab_panels[tab_panel] = tab_panel; } - else if(nPrimary == K_ESCAPE) - { - if (bInputType == 1) - return true; - menu_enabled = 1; - menu_enabled_time = time; - localcmd("menu_showhudexit\n"); - } else if(nPrimary == K_SPACE && hudShiftState & S_CTRL) // enable/disable highlighted panel or dock { if (bInputType == 1 || mouseClicked) -- 2.39.2