diff options
Diffstat (limited to 'src/config/legacy/ConfigManager.cpp')
| -rw-r--r-- | src/config/legacy/ConfigManager.cpp | 33 |
1 files changed, 29 insertions, 4 deletions
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<std::string> 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<std::string> 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<std::string> 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 {}; |
