From 8884b9e6ce608a22c993b1a871e864171626e8e5 Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Thu, 30 Apr 2026 11:59:03 +0000 Subject: binds: add an auto_consuming flag (#13919) --- src/config/legacy/ConfigManager.cpp | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'src/config/legacy/ConfigManager.cpp') diff --git a/src/config/legacy/ConfigManager.cpp b/src/config/legacy/ConfigManager.cpp index 3e6fe6e9..2705c395 100644 --- a/src/config/legacy/ConfigManager.cpp +++ b/src/config/legacy/ConfigManager.cpp @@ -1478,6 +1478,7 @@ std::optional CConfigManager::handleBind(const std::string& command bool repeat = false; bool mouse = false; bool nonConsuming = false; + bool autoConsuming = false; bool transparent = false; bool ignoreMods = false; bool multiKey = false; @@ -1497,6 +1498,7 @@ std::optional CConfigManager::handleBind(const std::string& command case 'e': repeat = true; break; case 'm': mouse = true; break; case 'n': nonConsuming = true; break; + case 'a': autoConsuming = true; break; case 't': transparent = true; break; case 'i': ignoreMods = true; break; case 's': multiKey = true; break; @@ -1596,10 +1598,33 @@ std::optional CConfigManager::handleBind(const std::string& command return "Invalid catchall, catchall keybinds are only allowed in submaps."; } - g_pKeybindManager->addKeybind(SKeybind{parsedKey.key, KEYSYMS, parsedKey.keycode, parsedKey.catchAll, MOD, MODS, HANDLER, - COMMAND, locked, m_currentSubmap, DESCRIPTION, release, repeat, longPress, - mouse, nonConsuming, transparent, ignoreMods, multiKey, hasDescription, dontInhibit, - click, drag, submapUniversal, deviceInclusive, devices}); + g_pKeybindManager->addKeybind(SKeybind{parsedKey.key, + KEYSYMS, + parsedKey.keycode, + parsedKey.catchAll, + MOD, + MODS, + HANDLER, + COMMAND, + locked, + m_currentSubmap, + DESCRIPTION, + release, + repeat, + longPress, + mouse, + nonConsuming, + autoConsuming, + transparent, + ignoreMods, + multiKey, + hasDescription, + dontInhibit, + click, + drag, + submapUniversal, + deviceInclusive, + devices}); } return {}; -- cgit v1.2.3