Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2624)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js

Issue 2447773002: Use setSequentialFocusNavigationStartingPoint in ChromeVox (Closed)
Patch Set: Rebased and added test Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6f30e143b6fdb635f46da820675d7670785e62e9..4159fb6904e97b624752ac70e2e4edb608b14fd3 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -770,14 +770,11 @@ Background.prototype = {
};
if (isFocusable(start)) {
start.focus();
- return;
- }
- if (isFocusable(end)) {
+ } else if (isFocusable(end)) {
end.focus();
- return;
+ } else {
+ start.setSequentialFocusNavigationStartingPoint();
David Tseng 2016/10/26 17:03:26 Does this work on in line text boxes?
}
-
- // TODO(dmazzoni): Set sequential focus.
}
};

Powered by Google App Engine
This is Rietveld 408576698