From: terencehill Date: Sun, 12 Dec 2010 22:02:47 +0000 (+0100) Subject: And fix interaction with mouse :) X-Git-Tag: xonotic-v0.5.0~365 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a4af8400bd463077a0be5b3df3e644da89839c80;p=xonotic%2Fxonotic-data.pk3dir.git And fix interaction with mouse :) --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index d7095dbce..ee1597072 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1146,7 +1146,7 @@ float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary) } else if(nPrimary == K_TAB && hudShiftState & S_CTRL) //TODO: move this case down { - if (bInputType == 1) + if (bInputType == 1 || mouseClicked) return true; //FIXME: if a panel is highlighted, has the same pos_x and lays in the same level @@ -1529,6 +1529,12 @@ void HUD_Panel_Mouse() if(mouseClicked) { + if (tab_panel != -1) + { + //stop ctrl-tab selection + tab_panel = -1; + reset_tab_panels(); + } if(prevMouseClicked == 0) { HUD_Panel_Highlight(); // sets highlightedPanel, highlightedAction, panel_click_distance, panel_click_resizeorigin