mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Fix overlapping of combined binds with modifiers
This commit is contained in:
parent
b832811ae9
commit
71079f0944
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue