diff --git a/src/game/client/components/binds.cpp b/src/game/client/components/binds.cpp index eb01398c1..b03425b6a 100644 --- a/src/game/client/components/binds.cpp +++ b/src/game/client/components/binds.cpp @@ -150,6 +150,16 @@ bool CBinds::OnInput(const IInput::CEvent &Event) Handled = true; } } + else + { + // Repeat active bind while key is held down + // Have to check for nullptr again because the previous execute can unbind itself + if(m_aapKeyBindings[ActiveBind->m_ModifierMask][ActiveBind->m_Key]) + { + Console()->ExecuteLineStroked(1, m_aapKeyBindings[ActiveBind->m_ModifierMask][ActiveBind->m_Key]); + } + Handled = true; + } } if(Event.m_Flags & IInput::FLAG_RELEASE)