diff --git a/packages/experimental/cua-macos/native/tests/swift/SystemInputTests.swift b/packages/experimental/cua-macos/native/tests/swift/SystemInputTests.swift index 34ceac1c0a..0f192c6f7e 100644 --- a/packages/experimental/cua-macos/native/tests/swift/SystemInputTests.swift +++ b/packages/experimental/cua-macos/native/tests/swift/SystemInputTests.swift @@ -1,6 +1,7 @@ // Record synthesized events and desktop state queries without posting input to the user's desktop. import CoreGraphics import Darwin +import Foundation import Testing @testable import CuaNative diff --git a/packages/experimental/cua/src/held-inputs.ts b/packages/experimental/cua/src/held-inputs.ts index 328cb01de5..845b8150fc 100644 --- a/packages/experimental/cua/src/held-inputs.ts +++ b/packages/experimental/cua/src/held-inputs.ts @@ -19,7 +19,7 @@ function renderInputs(inputs: z.infer, state: 'held' | 'relea const title = state === 'held' ? 'CUA inputs are still held:' : 'CUA inputs were released during cleanup:' return ['', title, ...rows, state === 'held' - ? "They remain pressed across programs and turns. Release them explicitly with sendKeyEvent(key, 'up') or toggleMouse(button, 'up') on the same target when no longer needed." + ? "They remain pressed across programs and turns. To release them, call sendKeyEvent or toggleMouse on the same target with direction 'up' and the same input options as the down." : 'These inputs are no longer held.', ''].join('\n') }