diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2026-04-30 11:59:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-30 12:59:03 +0100 |
| commit | 8884b9e6ce608a22c993b1a871e864171626e8e5 (patch) | |
| tree | af81ea833fc6e556602047c75936b8199ad5641f /src/managers/KeybindManager.cpp | |
| parent | d40860e8e27c2abc50cebaae56e16b4ac10af667 (diff) | |
binds: add an auto_consuming flag (#13919)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 8b1ec653..4a5df4be 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -653,7 +653,7 @@ SDispatchResult CKeybindManager::handleKeybinds(const uint32_t modmask, const SP } if (pressed && k->release && !SPECIALDISPATCHER) { - if (k->nonConsuming) + if (k->nonConsuming || k->autoConsuming) continue; found = true; // suppress the event @@ -672,7 +672,7 @@ SDispatchResult CKeybindManager::handleKeybinds(const uint32_t modmask, const SP continue; } else if (!k->release && !SPECIALDISPATCHER) { - if (k->nonConsuming) + if (k->nonConsuming || k->autoConsuming) continue; found = true; // suppress the event @@ -737,7 +737,7 @@ SDispatchResult CKeybindManager::handleKeybinds(const uint32_t modmask, const SP m_repeatKeyTimer->updateTimeout(std::chrono::milliseconds(KEEB->m_repeatDelay)); } - if (!k->nonConsuming) + if (!k->nonConsuming && !(k->autoConsuming && !res.success)) found = true; } |
