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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.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 | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
index a0d64ef86fac0d32b73451ab564b87a178251fc7..709af5751a3c547788ce106451d6b03018e4e10f 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
@@ -110,6 +110,7 @@ cvox.ChromeVoxPrefs.prototype.switchToKeyMap = function(selectedKeyMap) {
// class to manage multiple key maps.
localStorage['currentKeyMap'] = selectedKeyMap;
this.keyMap_ = cvox.KeyMap.fromCurrentKeyMap();
+ cvox.ChromeVoxKbHandler.handlerKeyMap = this.keyMap_;
this.keyMap_.toLocalStorage();
this.keyMap_.resetModifier();
this.sendPrefsToAllTabs(false, true);
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698