Merge pull request #1957 from che-3/fix/esc-not-working-in-panels

Fix Escape key not working in terminal panels (e.g. lazygit)
This commit is contained in:
Lawrence Chen 2026-03-22 17:49:00 -07:00 committed by GitHub
commit 5be9edaf5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4452,9 +4452,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCent
commandPaletteEscapeSuppressionByWindowId.contains(windowId) else {
return false
}
if event.isARepeat {
return true
}
let startedAt = commandPaletteEscapeSuppressionStartedAtByWindowId[windowId] ?? 0
if ProcessInfo.processInfo.systemUptime - startedAt <= 0.35 {
return true