Export reviewed object and flat reading to Remote
This commit is contained in:
1 parent
49be8309fe
commit
c03ffa7409
11 files changed
+425
-10
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user