From 505f2509c01b86568da52a8f16b674c4458f5ba8 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 31 Oct 2024 10:59:48 +0800 Subject: [PATCH] only allow longPress if release is not set --- src/config/ConfigManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index b0275fa1..8a17253d 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2191,8 +2191,8 @@ std::optional 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') {