// at this point bInputType can only be 0 or 1 (key pressed or released)
bool key_pressed = (bInputType == 0);
+ int hudShiftState_prev = hudShiftState;
+ int mouseClicked_prev = mouseClicked;
if(key_pressed)
{
if(nPrimary == K_ALT) hudShiftState |= S_ALT;
{
QuickMenu_Page_ActiveEntry(stof(chr2str(nPrimary)));
}
- else
+ else if (hudShiftState_prev == hudShiftState && mouseClicked_prev == mouseClicked)
{
// allow console bind to work
string con_keys = findkeysforcommand("toggleconsole", 0);