Fix overlapping of combined binds with modifiers

This commit is contained in:
Дядя Женя 2020-10-31 01:23:07 +03:00
parent b832811ae9
commit 71079f0944

View file

@ -143,8 +143,7 @@ bool CBinds::OnInput(IInput::CEvent e)
}
}
// Shift for emoticons works while moving through map
if(m_aapKeyBindings[0][e.m_Key] && (!ret || m_aapKeyBindings[0][e.m_Key][0] == '+'))
if(m_aapKeyBindings[0][e.m_Key] && !ret)
{
// When ctrl+shift are pressed (ctrl+shift binds and also the hard-coded ctrl+shift+d, ctrl+shift+g, ctrl+shift+e), ignore other +xxx binds
if(e.m_Flags & IInput::FLAG_PRESS && Mask != ((1 << MODIFIER_CTRL) | (1 << MODIFIER_SHIFT)))