keybinds: avoid duplicated held keys, only use last, remove all

ref #4471
This commit is contained in:
Vaxry 2024-01-19 19:06:36 +01:00
parent 17339e0ae9
commit b86ed02d8a

View file

@ -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;
}