Skip to content

Commit 99f7155

Browse files
committed
Only handle repeating key events if the type is .keyDown
1 parent 2795830 commit 99f7155

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

App/Sources/Core/MachPort/MachPortCoordinator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ final class MachPortCoordinator: @unchecked Sendable, ObservableObject, LeaderKe
153153

154154
if launchArguments.isEnabled(.disableMachPorts) { return }
155155

156-
if handleRepeatingKeyEvent(machPortEvent) { return }
157-
158156
let inMacroContext = macroCoordinator.state == .recording && !machPortEvent.isRepeat
159157
let eventSignature = CGEventSignature.from(machPortEvent.event, keyCode: machPortEvent.keyCode)
160158

@@ -164,6 +162,8 @@ final class MachPortCoordinator: @unchecked Sendable, ObservableObject, LeaderKe
164162
macroCoordinator.handleMacroExecution(machPortEvent, machPort: machPort, keyboardRunner: keyboardCommandRunner, workflowRunner: workflowRunner, eventSignature: eventSignature) {
165163
return
166164
}
165+
166+
if handleRepeatingKeyEvent(machPortEvent) { return }
167167
case .keyUp:
168168
if let workflow = previousExactMatch, workflow.machPortConditions.shouldRunOnKeyUp {
169169
if let previousKeyDownMachPortEvent = PeekApplicationPlugin.peekEvent {

Project.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let mainAppTarget = Target.target(
5555
"CURRENT_PROJECT_VERSION": SettingValue(stringLiteral: buildNumber),
5656
"DEVELOPMENT_TEAM": env["TEAM_ID"],
5757
"ENABLE_HARDENED_RUNTIME": true,
58-
"MARKETING_VERSION": "3.27.1",
58+
"MARKETING_VERSION": "3.27.2",
5959
"PRODUCT_NAME": "Keyboard Cowboy",
6060
"SWIFT_STRICT_CONCURRENCY": "complete",
6161
"SWIFT_VERSION": "6.0",

0 commit comments

Comments
 (0)