Fix some issues with disabled edit fields.

This commit is contained in:
lilmike committed 2026-10-27 09:20:20 -07:00
1 parent d8b59aa05b
commit 7d720e131d
7 files changed
+240 -11

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ import (
type caretRange struct{ index, start, end int }
func caretNodeRanges(nodes []atspi.DocumentNode) []caretRange {
indices, _ := caret_node_indices(nodes, atspi.ObjectReference{})
indices, _, expanded := caret_node_indices(nodes, atspi.ObjectReference{})
eligible := make(map[int]bool, len(indices))
byID := make(map[atspi.ObjectID]int, len(nodes))
for _, index := range indices {
@@ -74,7 +74,7 @@ func caretNodeRanges(nodes []atspi.DocumentNode) []caretRange {
}
if eligible[index] {
result = append(result, caretRange{index, 0, caret_text_count(node.Snapshot)})
if wholeCaretNode(node.Snapshot) {
if wholeCaretNode(node.Snapshot) && !expanded[node.Reference.ID()] {
return
}
}