Skip to content

Commit

Permalink
keybinds: avoid duplicated held keys, only use last, remove all
Browse files Browse the repository at this point in the history
ref #4471
  • Loading branch information
vaxerski committed Jan 19, 2024
1 parent 17339e0 commit b86ed02
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b86ed02

Please sign in to comment.