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

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

Issue 2740793002: Minimize the Classic API and enable it for Next (Closed)
Patch Set: Minimize the Classic API and enable it for Next Created 3 years, 9 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/keyboard_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/keyboard_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/keyboard_handler.js
index fcc3b8c88056b27003e5d10b79a8715bddba9b2e..76904677001e3d46ea65b9d75ddeb003a6661277 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/keyboard_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/keyboard_handler.js
@@ -39,7 +39,6 @@ BackgroundKeyboardHandler.prototype = {
return false;
if (ChromeVoxState.instance.mode != ChromeVoxMode.CLASSIC &&
- ChromeVoxState.instance.mode != ChromeVoxMode.NEXT_COMPAT &&
!cvox.ChromeVoxKbHandler.basicKeyDownActionsListener(evt)) {
evt.preventDefault();
evt.stopPropagation();
@@ -81,8 +80,7 @@ BackgroundKeyboardHandler.prototype = {
* @param {ChromeVoxMode?} oldMode
*/
onModeChanged: function(newMode, oldMode) {
- if (newMode == ChromeVoxMode.CLASSIC ||
- newMode == ChromeVoxMode.NEXT_COMPAT) {
+ if (newMode == ChromeVoxMode.CLASSIC) {
chrome.accessibilityPrivate.setKeyboardListener(false, false);
} else {
chrome.accessibilityPrivate.setKeyboardListener(
@@ -90,8 +88,7 @@ BackgroundKeyboardHandler.prototype = {
}
if (newMode === ChromeVoxMode.NEXT ||
- newMode === ChromeVoxMode.FORCE_NEXT ||
- newMode === ChromeVoxMode.NEXT_COMPAT) {
+ newMode === ChromeVoxMode.FORCE_NEXT) {
// Switching out of classic, classic compat, or uninitialized
// (on startup).
window['prefs'].switchToKeyMap('keymap_next');

Powered by Google App Engine
This is Rietveld 408576698