keybinds: fix ignoremods with release

This commit is contained in:
Vaxry 2024-02-02 01:09:49 +00:00
parent 3656045ad8
commit 4644de2269
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ bool CKeybindManager::handleKeybinds(const uint32_t modmask, const SPressedKeyWi
if (!pressed) {
// Require mods to be matching when the key was first pressed.
if (key.modmaskAtPressTime != modmask) {
if (key.modmaskAtPressTime != modmask && !k.ignoreMods) {
// Handle properly `bindr` where a key is itself a bind mod for example:
// "bindr = SUPER, SUPER_L, exec, $launcher".
// This needs to be handled separately for the above case, because `key.modmaskAtPressTime` is set