fix(Hotkey): Single key not executing multiple hotkeys (#2111)

Closes #2000
This commit is contained in:
Andreas Maerten 2023-09-10 17:20:45 +02:00 committed by GitHub
parent 956d8110a0
commit 9769b26870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ namespace big
if (state == eKeyState::RELEASE || state == eKeyState::DOWN)
{
auto& hotkey_map = m_hotkeys[state == eKeyState::RELEASE];
if (const auto& it = hotkey_map.find(key); it != hotkey_map.end())
for (auto [ it, end ] = hotkey_map.equal_range(key); it != end; ++it)
{
if (auto& hotkey = it->second; hotkey.can_exec())
{