From fd4c8a43ca1a8fe6d5bd30974131d1a0f01ce176 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 3 Nov 2024 10:13:26 +0800 Subject: [PATCH] fix: compatibility check --- src/config/ConfigManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 8a17253d..c53cf7e7 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2191,7 +2191,7 @@ std::optional CConfigManager::handleBind(const std::string& command ignoreMods = true; } else if (arg == 's') { multiKey = true; - } else if (arg == 'o' && !release) { + } else if (arg == 'o') { longPress = true; } else if (arg == 'd') { hasDescription = true; @@ -2202,8 +2202,8 @@ std::optional CConfigManager::handleBind(const std::string& command } } - if (release && repeat) - return "flags r and e are mutually exclusive"; + if ((longPress || release) && repeat) + return "flags e is mutually exclusive with r and o"; if (mouse && (repeat || release || locked)) return "flag m is exclusive";