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

Unified Diff: ash/accelerators/accelerator_table.cc

Issue 10914231: Map fullscreen button to maximize (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix unit test Created 8 years, 3 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: ash/accelerators/accelerator_table.cc
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc
index e7bfcc0062be0d24df64d33defc9718104dfff32..7ad0e35e30a380a4f2c2f20fd1c02961d3d335ea 100644
--- a/ash/accelerators/accelerator_table.cc
+++ b/ash/accelerators/accelerator_table.cc
@@ -45,6 +45,7 @@ const AcceleratorData kAcceleratorData[] = {
{ true, ui::VKEY_KBD_BRIGHTNESS_DOWN, ui::EF_NONE, KEYBOARD_BRIGHTNESS_DOWN },
{ true, ui::VKEY_KBD_BRIGHTNESS_UP, ui::EF_NONE, KEYBOARD_BRIGHTNESS_UP },
{ true, ui::VKEY_F4, ui::EF_CONTROL_DOWN, CYCLE_DISPLAY_MODE },
+ { true, ui::VKEY_F4, ui::EF_NONE, WINDOW_MAXIMIZE_RESTORE },
{ true, ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, LOCK_SCREEN },
{ true, ui::VKEY_POWER, ui::EF_NONE, POWER_PRESSED },
{ false, ui::VKEY_POWER, ui::EF_NONE, POWER_RELEASED },
@@ -171,6 +172,7 @@ const AcceleratorAction kReservedActions[] = {
FOCUS_PREVIOUS_PANE, // Control+F1
FOCUS_NEXT_PANE, // Control+F2
CYCLE_DISPLAY_MODE, // Control+F4
+ WINDOW_MAXIMIZE_RESTORE, // F4
sky 2012/09/14 22:48:05 Can we call this TOGGLE_MAXIMIZED everywhere?
sschmitz 2012/09/14 23:44:57 Done.
CYCLE_FORWARD_LINEAR, // F5
CYCLE_BACKWARD_LINEAR, // Shift+F5
TAKE_SCREENSHOT, // Control+F5

Powered by Google App Engine
This is Rietveld 408576698