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

Unified Diff: ash/accelerators/accelerator_table.cc

Issue 9956056: ash: Add accelerator for snapping windows left/right. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 | « ash/accelerators/accelerator_table.h ('k') | ash/wm/window_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_table.cc
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc
index ba4bc29ee7eed8a267984bf094e9eb6431935f86..974a50e2938c58266631439a41f8898fda989b42 100644
--- a/ash/accelerators/accelerator_table.cc
+++ b/ash/accelerators/accelerator_table.cc
@@ -85,6 +85,13 @@ const AcceleratorData kAcceleratorData[] = {
{ true, ui::VKEY_8, true, false, true, SELECT_WIN_7 },
{ true, ui::VKEY_9, true, false, true, SELECT_LAST_WIN },
+ // Window management shortcuts.
+ { true, ui::VKEY_OEM_4, false, false, true, WINDOW_SNAP_LEFT },
+ { true, ui::VKEY_OEM_6, false, false, true, WINDOW_SNAP_RIGHT },
+ { true, ui::VKEY_OEM_MINUS, false, false, true, WINDOW_MINIMIZE },
+ { true, ui::VKEY_OEM_PLUS, false, false, true, WINDOW_MAXIMIZE_RESTORE },
+ { true, ui::VKEY_OEM_PLUS, true, false, true, WINDOW_POSITION_CENTER },
+
{ true, ui::VKEY_F3, true, true, true, ROTATE_WINDOWS },
#if !defined(NDEBUG)
{ true, ui::VKEY_HOME, false, true, false, ROTATE_SCREEN },
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/wm/window_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698