Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js |
index 65011670b96af423c7a0aa6d3ec300dad4d7d324..974e0a4f0d7313363085ca4bd8f2a114a191d849 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js |
@@ -140,8 +140,7 @@ |
if (!this.node) |
return null; |
- if (this.node.role == RoleType.inlineTextBox || |
- this.index_ == cursors.NODE_INDEX) |
+ if (this.node.role == RoleType.inlineTextBox) |
return this.node.parent; |
return this.node; |
@@ -166,7 +165,9 @@ |
sibling = sibling.previousSibling; |
} |
} else if (this.index_ == cursors.NODE_INDEX) { |
- adjustedIndex = this.node.indexInParent + 1; |
+ // Indicies of this kind are buggy. Set it to 0 (different than the DOM |
+ // index in parent convention). |
+ adjustedIndex = 0; |
} |
return adjustedIndex; |
}, |