| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| index 9583ece160470b68c050a698335651e00d982f19..f9768fa3c9c2e5c973541a25bc1f4bd5aaf6274a 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
|
| @@ -679,7 +679,12 @@ Background.prototype = {
|
|
|
| if (pred) {
|
| var node = AutomationUtil.findNextNode(
|
| - current.getBound(dir).node, dir, pred);
|
| + current.getBound(dir).node, dir, pred, {skipInitialAncestry: true});
|
| +
|
| + if (node) {
|
| + node = AutomationUtil.findNodePre(
|
| + node, dir, AutomationPredicate.element) || node;
|
| + }
|
|
|
| if (node) {
|
| current = cursors.Range.fromNode(node);
|
|
|