Skip to content

Commit

Permalink
fix: compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
littleblack111 committed Nov 3, 2024
1 parent dd3caeb commit 0f961f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ std::optional<std::string> 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;
Expand All @@ -2196,8 +2196,8 @@ std::optional<std::string> 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";
Expand Down

0 comments on commit 0f961f4

Please sign in to comment.