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

Unified Diff: chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc

Issue 2250473006: Settings to remap Backspace and Escape keys (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KeyboardRemapToCapsLockBackspace
Patch Set: nit: consistent ordering Created 4 years, 4 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/ui/webui/options/chromeos/keyboard_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc b/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
index edb82135564dff766c4c1086c829527042eb1378..104671e63b3e2473394e928769a292eafd3515ed 100644
--- a/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
@@ -47,6 +47,8 @@ const char* kDataValuesNames[] = {
"remapAltKeyToValue",
"remapCapsLockKeyToValue",
"remapDiamondKeyToValue",
+ "remapEscapeKeyToValue",
+ "remapBackspaceKeyToValue",
};
bool HasExternalKeyboard() {
@@ -92,6 +94,12 @@ void KeyboardHandler::GetLocalizedValues(
localized_strings->SetString("remapDiamondKeyToContent",
l10n_util::GetStringUTF16(
IDS_OPTIONS_SETTINGS_LANGUAGES_KEY_DIAMOND_KEY_LABEL));
+ localized_strings->SetString("remapBackspaceKeyToContent",
+ l10n_util::GetStringUTF16(
+ IDS_OPTIONS_SETTINGS_LANGUAGES_KEY_BACKSPACE_KEY_LABEL));
+ localized_strings->SetString("remapEscapeKeyToContent",
+ l10n_util::GetStringUTF16(
+ IDS_OPTIONS_SETTINGS_LANGUAGES_KEY_ESCAPE_KEY_LABEL));
localized_strings->SetString("sendFunctionKeys",
l10n_util::GetStringUTF16(
IDS_OPTIONS_SETTINGS_LANGUAGES_SEND_FUNCTION_KEYS));

Powered by Google App Engine
This is Rietveld 408576698