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