From b86ed02d8ae7c955e1f42cc27a19fe18d82c50b7 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 19 Jan 2024 19:06:36 +0100 Subject: [PATCH] keybinds: avoid duplicated held keys, only use last, remove all ref #4471 --- src/managers/KeybindManager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index ead94ed9ed9..a08c95f56be 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -349,7 +349,6 @@ bool CKeybindManager::onKeyEvent(wlr_keyboard_key_event* e, SKeyboard* pKeyboard foundInPressedKeys = true; suppressEvent = !it->sent; it = m_dPressedKeys.erase(it); - break; } else { ++it; } @@ -432,7 +431,6 @@ bool CKeybindManager::onMouseEvent(wlr_pointer_button_event* e) { foundInPressedKeys = true; suppressEvent = !it->sent; it = m_dPressedKeys.erase(it); - break; } else { ++it; }