Export reviewed object and flat reading to Remote

This commit is contained in:
ak47 committed 2026-11-05 16:50:52 -05:00
1 parent 49be8309fe
commit c03ffa7409
11 files changed
+425 -10

No files matched your search

+7
View File
@@ -62,6 +62,9 @@ type Position struct {
Current atspi.Snapshot
Previous atspi.Snapshot
HasPrevious bool
// SourceContext retains privacy ancestry independently of presentation.
// Missing/stale ancestors leave it empty without changing local review.
SourceContext []atspi.Snapshot
}
// Cursor owns object-navigation state over one AccessibleTree. Focus updates
@@ -185,6 +188,10 @@ func (cursor *Cursor) positionLocked() (Position, error) {
return Position{}, fmt.Errorf("resolve current review object: %w", err)
}
position := Position{Current: current}
position.SourceContext, _ = cursor.tree.Ancestry(cursor.current)
if len(position.SourceContext) > 0 {
position.Current = position.SourceContext[0]
}
if cursor.previous.Valid() {
previous, previousErr := cursor.tree.Resolve(cursor.previous)
if previousErr == nil {