From 2ccfb7ee17106d0166a7de6d036b3a73988837b1 Mon Sep 17 00:00:00 2001 From: Gabriel Ford Date: Mon, 13 May 2024 19:10:00 -0400 Subject: [PATCH] Remove unneeded check for &. --- src/config/ConfigManager.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 9f2f5601f89..09acc035cb0 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1946,14 +1946,11 @@ std::optional CConfigManager::handleBind(const std::string& command std::set MODS; if (multiKey) { - if (ARGS[1].contains('&')) { - for (auto splitKey : CVarList(ARGS[1], 8, '&')) { - KEYSYMS.insert(xkb_keysym_from_name(splitKey.c_str(), XKB_KEYSYM_NO_FLAGS)); - } + for (auto splitKey : CVarList(ARGS[1], 8, '&')) { + KEYSYMS.insert(xkb_keysym_from_name(splitKey.c_str(), XKB_KEYSYM_CASE_INSENSITIVE)); } - for (auto splitMod : CVarList(ARGS[0], 8, '&')) { - MODS.insert(xkb_keysym_from_name(splitMod.c_str(), XKB_KEYSYM_NO_FLAGS)); + MODS.insert(xkb_keysym_from_name(splitMod.c_str(), XKB_KEYSYM_CASE_INSENSITIVE)); } } const auto MOD = g_pKeybindManager->stringToModMask(ARGS[0]);