only allow longPress if release is not set

This commit is contained in:
littleblack111 2024-10-31 10:59:48 +08:00 committed by Vaxry
parent 30ae830a4b
commit 505f2509c0

View file

@ -2191,8 +2191,8 @@ std::optional<std::string> CConfigManager::handleBind(const std::string& command
ignoreMods = true;
} else if (arg == 's') {
multiKey = true;
} else if (arg == 'o') {
longPress = true;
} else if (arg == 'o' && !release) {
longPress = true;
} else if (arg == 'd') {
hasDescription = true;
} else if (arg == 'p') {