summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorMightyPlaza <123664421+MightyPlaza@users.noreply.github.com>2026-04-30 11:59:03 +0000
committerGitHub <noreply@github.com>2026-04-30 12:59:03 +0100
commit8884b9e6ce608a22c993b1a871e864171626e8e5 (patch)
treeaf81ea833fc6e556602047c75936b8199ad5641f /src/managers/KeybindManager.cpp
parentd40860e8e27c2abc50cebaae56e16b4ac10af667 (diff)
binds: add an auto_consuming flag (#13919)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp6
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;
}