Align held-input reminders with system keyboard release options

This commit is contained in:
creatixchu committed 2026-11-20 18:34:58 +08:00
1 parent 97ddb7e5be
commit 46ca2d0d1a
2 files changed
+2 -1

No files matched your search

@@ -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
+1 -1
View File
@@ -19,7 +19,7 @@ function renderInputs(inputs: z.infer<typeof heldInputs>, state: 'held' | 'relea
const title = state === 'held' ? 'CUA inputs are still held:' : 'CUA inputs were released during cleanup:'
return ['<system-reminder>', 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.',
'</system-reminder>'].join('\n')
}