From 73f06434a43c75b3a81e31a6ed7586a14a9c7a48 Mon Sep 17 00:00:00 2001 From: rfresh2 <89827146+rfresh2@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:10:56 -0700 Subject: keybinds: fix repeat and long press keybinds release (#11863) --- src/managers/KeybindManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/KeybindManager.cpp') diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 3120157f..58d451b3 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -757,7 +757,7 @@ SDispatchResult CKeybindManager::handleKeybinds(const uint32_t modmask, const SP continue; } - if (k->longPress) { + if (pressed && k->longPress) { const auto PACTIVEKEEB = g_pSeatManager->m_keyboard.lock(); m_longPressTimer->updateTimeout(std::chrono::milliseconds(PACTIVEKEEB->m_repeatDelay)); @@ -796,7 +796,7 @@ SDispatchResult CKeybindManager::handleKeybinds(const uint32_t modmask, const SP } } - if (k->repeat) { + if (pressed && k->repeat) { const auto KEEB = keyboard ? keyboard : g_pSeatManager->m_keyboard.lock(); m_repeatKeyRate = KEEB->m_repeatRate; -- cgit v1.2.3