From fd4e3734e8d3267fd34dd2115861fe194e47ea09 Mon Sep 17 00:00:00 2001 From: lwouis Date: Tue, 10 Mar 2026 18:54:21 +0100 Subject: [PATCH] fix: key repeat in search mode --- src/logic/KeyRepeatTimer.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/logic/KeyRepeatTimer.swift b/src/logic/KeyRepeatTimer.swift index 7a386f9d..dc2cf6c8 100644 --- a/src/logic/KeyRepeatTimer.swift +++ b/src/logic/KeyRepeatTimer.swift @@ -33,12 +33,8 @@ class KeyRepeatTimer { } } - private static func isSearchEditing() -> Bool { - App.appIsBeingUsed && TilesPanel.shared.isKeyWindow && TilesView.isSearchEditing - } - private static func startTimerForRepeatingKey(_ atShortcut: ATShortcut, _ block: @escaping () -> Void) { - guard timerIsSuspended && atShortcut.state != .up && !isSearchEditing() else { return } + guard timerIsSuspended && atShortcut.state != .up else { return } currentTimerShortcutName = atShortcut.id // reading these user defaults every time guarantees we have the latest value, if the user has updated those let repeatRate = ticksToSeconds(CachedUserDefaults.globalString("KeyRepeat") ?? "6") @@ -52,7 +48,7 @@ class KeyRepeatTimer { private static func handleEvent(_ atShortcut: ATShortcut, _ block: @escaping () -> Void) { DispatchQueue.main.async { - if atShortcut.state == .up || isSearchEditing() { + if atShortcut.state == .up { stopTimerForRepeatingKey(atShortcut.id) } else { block()