You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e569e49
Browse filesBrowse the repository at this point in the historyBrowse files
fix(desktop): keep coordinate input on the selected window and confirm targeted focus
- Coordinate clicks and scrolls without a windowId use the snapshot's selected
window through every input check; element targets keep their own window
- press_key with an elementId sends the key only once that element holds focus
- The service observes the selected window after a call without one
- A scroll needs at least one delta, matching the worker contract
throwComputerError("stale_window","The editor's window moved or is not an observed window; observe again.")
705
706
}
706
-
guardletcurrent=attribute(root,kAXFocusedUIElementAttribute),holdsFocus(current)else{throwComputerError("focus_changed","The exact editor is no longer focused; remaining input was not dispatched. Observe again.")}
707
+
guardletcurrent=attribute(root,kAXFocusedUIElementAttribute),holdsFocus(current,element)else{throwComputerError("focus_changed","The exact editor is no longer focused; remaining input was not dispatched. Observe again.")}
guardletevent=CGEvent(scrollWheelEvent2Source:CGEventSource(stateID:.privateState),units:.pixel,wheelCount:2,wheel1:Int32(-dy),wheel2:Int32(-dx),wheel3:0)else{throwComputerError("input_failed","Could not create scroll event.")}
0 commit comments