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

Unified Diff: ash/system/chromeos/keyboard_brightness_controller.cc

Issue 11417144: Use rewriting to make ChromeOS keyboard F<number> keys produce extended keycodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding3 Created 8 years, 1 month 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 | « ash/accelerators/accelerator_table.cc ('k') | chrome/browser/ui/ash/brightness_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/keyboard_brightness_controller.cc
diff --git a/ash/system/chromeos/keyboard_brightness_controller.cc b/ash/system/chromeos/keyboard_brightness_controller.cc
index f3f34c14717da8733451daf698d8f76dca6022be..bad8d09cde438ab61e4cf30224494aefed3c0521 100644
--- a/ash/system/chromeos/keyboard_brightness_controller.cc
+++ b/ash/system/chromeos/keyboard_brightness_controller.cc
@@ -15,7 +15,7 @@ namespace ash {
bool KeyboardBrightnessController::HandleKeyboardBrightnessDown(
const ui::Accelerator& accelerator) {
- if (accelerator.key_code() == ui::VKEY_F6) {
+ if (accelerator.key_code() == ui::VKEY_BRIGHTNESS_DOWN) {
Shell::GetInstance()->delegate()->RecordUserMetricsAction(
UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6);
}
@@ -27,7 +27,7 @@ bool KeyboardBrightnessController::HandleKeyboardBrightnessDown(
bool KeyboardBrightnessController::HandleKeyboardBrightnessUp(
const ui::Accelerator& accelerator) {
- if (accelerator.key_code() == ui::VKEY_F7) {
+ if (accelerator.key_code() == ui::VKEY_BRIGHTNESS_UP) {
Shell::GetInstance()->delegate()->RecordUserMetricsAction(
UMA_ACCEL_KEYBOARD_BRIGHTNESS_UP_F7);
}
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | chrome/browser/ui/ash/brightness_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698