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

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

Issue 1773003002: Set keymap in prefs when switching modes in Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_warnings
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb137d17b87f2aed2630b4545f96c0f22006624f..a279da828ab91a13158114599d71a3f0b5ec36dc 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -170,9 +170,9 @@ Background.prototype = {
// cvox.KeySequence.deserialize which gets called by cvox.KeyMap.
cvox.ChromeVox.sequenceSwitchKeyCodes = [];
if (mode === ChromeVoxMode.CLASSIC || mode === ChromeVoxMode.COMPAT)
- cvox.ChromeVoxKbHandler.handlerKeyMap = cvox.KeyMap.fromDefaults();
+ window['prefs'].switchToKeyMap('keymap_classic');
else
- cvox.ChromeVoxKbHandler.handlerKeyMap = cvox.KeyMap.fromNext();
+ window['prefs'].switchToKeyMap('keymap_next');
if (mode == ChromeVoxMode.CLASSIC) {
if (chrome.commands &&
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698