diff options
| author | rfresh2 <89827146+rfresh2@users.noreply.github.com> | 2025-10-06 12:10:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-06 21:10:56 +0200 |
| commit | 73f06434a43c75b3a81e31a6ed7586a14a9c7a48 (patch) | |
| tree | 0bb1a5ace48f8f17859583f59eb39b9787283273 /src/managers/KeybindManager.cpp | |
| parent | 17e77e0407bebd5d24521012ee1d04b156d6b9f4 (diff) | |
keybinds: fix repeat and long press keybinds release (#11863)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
