From 204a5805449b792fe19487fb2478745bca591291 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:36:12 +0200 Subject: [PATCH] keybinds: fixup global conditions --- src/managers/KeybindManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 882ed2af..2a5a824f 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -408,7 +408,7 @@ bool CKeybindManager::handleKeybinds(const uint32_t& modmask, const std::string& continue; } - if (pressed && k.release) { + if (pressed && k.release && k.handler != "global") { if (k.nonConsuming) continue; @@ -416,7 +416,7 @@ bool CKeybindManager::handleKeybinds(const uint32_t& modmask, const std::string& continue; } - if (!pressed && !k.release) { + if (!pressed && !k.release && k.handler != "global") { if (k.nonConsuming) continue;