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