From f0e4f6622e3e9addc530119b804d2f71395455e7 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 14 Jun 2023 04:08:56 -0700 Subject: Implement pass binds (#2503) * Implement pass binds Pass binds run the associated dispatcher but do not prevent windows from receiving the bind. * Fix pass binds not working properly with release binds * Rename `pass` to `nonConsuming` --- src/managers/KeybindManager.hpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/managers/KeybindManager.hpp') diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index b45e83fa..37cab05c 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -11,16 +11,17 @@ class CConfigManager; class CPluginSystem; struct SKeybind { - std::string key = ""; - int keycode = -1; - uint32_t modmask = 0; - std::string handler = ""; - std::string arg = ""; - bool locked = false; - std::string submap = ""; - bool release = false; - bool repeat = false; - bool mouse = false; + std::string key = ""; + int keycode = -1; + uint32_t modmask = 0; + std::string handler = ""; + std::string arg = ""; + bool locked = false; + std::string submap = ""; + bool release = false; + bool repeat = false; + bool mouse = false; + bool nonConsuming = false; // DO NOT INITIALIZE bool shadowed = false; -- cgit v1.2.3