Found a few ways in which the Braille problem with browsers could resurface. Fixed now.
This commit is contained in:
1 parent
0a3d946ffa
commit
a47253d697
13 files changed
+292
-23
No files matched your search
@@ -112,7 +112,9 @@ func (adapter *Adapter) repairNativeCaretLine(source *C.AtspiAccessible, snapsho
|
||||
if err != nil || line.Start < 0 || line.End <= line.Start {
|
||||
return
|
||||
}
|
||||
snapshot.Text = sanitizeSnapshotField(line.Text)
|
||||
snapshot.BrailleLine, snapshot.BrailleLineStart, snapshot.BrailleCaret = line.Text, line.Start, offset
|
||||
snapshot.CharacterCount = count
|
||||
line.RawText = line.Text
|
||||
if snapshot.BrailleLine != line.RawText || snapshot.BrailleLineStart != line.Start || snapshot.CharacterCount != count {
|
||||
line = expandNativeDocumentText(ctx, source, *snapshot, line)
|
||||
}
|
||||
snapshot.applyDocumentCaretLine(line, offset)
|
||||
}
|
||||
Reference in new issue
Block a user