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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 13008005: Short-term fix for CapsLock remapping on chromebooks with external keyboard (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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/ui/ash/event_rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.cc
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
index 2e1b505716ef452d39ce026482a1bc9c5d58775c..5cf58d238ca50d8be2c6d8f5efc09b1d2d277965 100644
--- a/chrome/browser/chromeos/preferences.cc
+++ b/chrome/browser/chromeos/preferences.cc
@@ -233,9 +233,12 @@ void Preferences::RegisterUserPrefs(PrefRegistrySyncable* registry) {
registry->RegisterIntegerPref(prefs::kLanguageRemapAltKeyTo,
input_method::kAltKey,
PrefRegistrySyncable::SYNCABLE_PREF);
+ // We don't sync the CapsLock remapping pref, since the UI hides this pref
+ // on certain devices, so syncing a non-default value to a device that
+ // doesn't allow changing the pref would be odd. http://crbug.com/167237
registry->RegisterIntegerPref(prefs::kLanguageRemapCapsLockKeyTo,
Yusuke Sato 2013/03/22 18:42:21 I think we need to rename kLanguageRemapCapsLockKe
David Roche 2013/03/22 19:17:11 Is changing the pref name really required, since i
input_method::kCapsLockKey,
- PrefRegistrySyncable::SYNCABLE_PREF);
+ PrefRegistrySyncable::UNSYNCABLE_PREF);
registry->RegisterIntegerPref(prefs::kLanguageRemapDiamondKeyTo,
input_method::kControlKey,
PrefRegistrySyncable::SYNCABLE_PREF);
« no previous file with comments | « no previous file | chrome/browser/ui/ash/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698