Index: ash/accelerators/accelerator_table.cc |
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc |
index caed475765d543a2b27691a3b340bf4307084d04..d532db248cf183aa74d55928447eca5ac778a65b 100644 |
--- a/ash/accelerators/accelerator_table.cc |
+++ b/ash/accelerators/accelerator_table.cc |
@@ -41,30 +41,24 @@ const AcceleratorData kAcceleratorData[] = { |
#if defined(OS_CHROMEOS) |
{ true, ui::VKEY_BROWSER_SEARCH, ui::EF_NONE, TOGGLE_APP_LIST }, |
{ true, ui::VKEY_WLAN, ui::EF_NONE, TOGGLE_WIFI }, |
- { true, ui::VKEY_BRIGHTNESS_DOWN, ui::EF_NONE, BRIGHTNESS_DOWN }, |
- { true, ui::VKEY_BRIGHTNESS_UP, ui::EF_NONE, BRIGHTNESS_UP }, |
{ 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_NONE, TOGGLE_MAXIMIZED }, |
- { true, ui::VKEY_F4, ui::EF_CONTROL_DOWN, CYCLE_DISPLAY_MODE }, |
- { true, ui::VKEY_F4, ui::EF_ALT_DOWN, SWAP_PRIMARY_DISPLAY }, |
- { true, ui::VKEY_F5, ui::EF_NONE, CYCLE_FORWARD_LINEAR }, |
- { true, ui::VKEY_F5, ui::EF_SHIFT_DOWN, CYCLE_BACKWARD_LINEAR }, |
- { true, ui::VKEY_F5, ui::EF_CONTROL_DOWN, TAKE_SCREENSHOT }, |
- { true, ui::VKEY_F5, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, |
+ // Maximize button. |
+ { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_CONTROL_DOWN, CYCLE_DISPLAY_MODE }, |
+ { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_ALT_DOWN, SWAP_PRIMARY_DISPLAY }, |
+ // Cycle windows button. |
+ { true, ui::VKEY_MEDIA_LAUNCH_APP1, ui::EF_CONTROL_DOWN, TAKE_SCREENSHOT }, |
+ { true, ui::VKEY_MEDIA_LAUNCH_APP1, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, |
TAKE_PARTIAL_SCREENSHOT }, |
- { true, ui::VKEY_F6, ui::EF_NONE, BRIGHTNESS_DOWN }, |
- { true, ui::VKEY_F6, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_DOWN }, |
- { true, ui::VKEY_F7, ui::EF_NONE, BRIGHTNESS_UP }, |
- { true, ui::VKEY_F7, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_UP }, |
- { true, ui::VKEY_F6, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, |
+ { true, ui::VKEY_BRIGHTNESS_DOWN, ui::EF_NONE, BRIGHTNESS_DOWN }, |
+ { true, ui::VKEY_BRIGHTNESS_DOWN, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_DOWN }, |
+ { true, ui::VKEY_BRIGHTNESS_UP, ui::EF_NONE, BRIGHTNESS_UP }, |
+ { true, ui::VKEY_BRIGHTNESS_UP, ui::EF_ALT_DOWN, KEYBOARD_BRIGHTNESS_UP }, |
+ { true, ui::VKEY_BRIGHTNESS_DOWN, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, |
MAGNIFY_SCREEN_ZOOM_OUT}, |
- { true, ui::VKEY_F7, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, |
+ { true, ui::VKEY_BRIGHTNESS_UP, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, |
MAGNIFY_SCREEN_ZOOM_IN}, |
{ true, ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, LOCK_SCREEN }, |
- { true, ui::VKEY_F8, ui::EF_NONE, VOLUME_MUTE }, |
- { true, ui::VKEY_F9, ui::EF_NONE, VOLUME_DOWN }, |
- { true, ui::VKEY_F10, ui::EF_NONE, VOLUME_UP }, |
// The lock key on Chrome OS keyboards produces F13 scancodes. |
{ true, ui::VKEY_F13, ui::EF_NONE, LOCK_PRESSED }, |
{ false, ui::VKEY_F13, ui::EF_NONE, LOCK_RELEASED }, |
@@ -76,12 +70,9 @@ const AcceleratorData kAcceleratorData[] = { |
// Extra shortcut for display swaping as alt-f4 is taken on linux desktop. |
{ true, ui::VKEY_F4, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, |
SWAP_PRIMARY_DISPLAY }, |
- // Extra shortcut to exit on linux desktop. |
- { true, ui::VKEY_F11, ui::EF_NONE, POWER_PRESSED }, |
- { false, ui::VKEY_F11, ui::EF_NONE, POWER_RELEASED }, |
// Extra shortcut to lock the screen on linux desktop. |
- { true, ui::VKEY_F11, ui::EF_SHIFT_DOWN, LOCK_PRESSED }, |
- { false, ui::VKEY_F11, ui::EF_SHIFT_DOWN, LOCK_RELEASED }, |
+ { true, ui::VKEY_POWER, ui::EF_SHIFT_DOWN, LOCK_PRESSED }, |
+ { false, ui::VKEY_POWER, ui::EF_SHIFT_DOWN, LOCK_RELEASED }, |
#endif // !defined(NDEBUG) |
{ true, ui::VKEY_O, ui::EF_CONTROL_DOWN, OPEN_FILE_MANAGER_DIALOG }, |
{ true, ui::VKEY_M, ui::EF_CONTROL_DOWN, OPEN_FILE_MANAGER_TAB }, |
@@ -101,7 +92,7 @@ const AcceleratorData kAcceleratorData[] = { |
{ true, ui::VKEY_N, ui::EF_CONTROL_DOWN, NEW_WINDOW }, |
{ true, ui::VKEY_T, ui::EF_CONTROL_DOWN, NEW_TAB }, |
- { true, ui::VKEY_F3, |
+ { true, ui::VKEY_BROWSER_REFRESH, |
ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, |
ROTATE_WINDOWS }, |
{ true, ui::VKEY_MEDIA_LAUNCH_APP1, ui::EF_SHIFT_DOWN, |
@@ -113,7 +104,7 @@ const AcceleratorData kAcceleratorData[] = { |
// extended keyboard shortcuts. |
{ true, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST }, |
{ false, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST }, |
- { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_NONE, TOGGLE_APP_LIST }, |
+ { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_NONE, TOGGLE_MAXIMIZED }, |
{ true, ui::VKEY_LWIN, ui::EF_ALT_DOWN, TOGGLE_CAPS_LOCK }, |
{ true, ui::VKEY_VOLUME_MUTE, ui::EF_NONE, VOLUME_MUTE }, |
{ true, ui::VKEY_VOLUME_DOWN, ui::EF_NONE, VOLUME_DOWN }, |
@@ -127,7 +118,8 @@ const AcceleratorData kAcceleratorData[] = { |
ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, |
SHOW_KEYBOARD_OVERLAY }, |
{ true, ui::VKEY_F14, ui::EF_NONE, SHOW_KEYBOARD_OVERLAY }, |
- { true, ui::VKEY_F1, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, SHOW_OAK }, |
+ { true, ui::VKEY_BROWSER_BACK, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, |
+ SHOW_OAK }, |
{ true, ui::VKEY_ESCAPE, ui::EF_SHIFT_DOWN, SHOW_TASK_MANAGER }, |
{ true, ui::VKEY_1, ui::EF_ALT_DOWN, SELECT_WIN_0 }, |
{ true, ui::VKEY_2, ui::EF_ALT_DOWN, SELECT_WIN_1 }, |
@@ -146,8 +138,8 @@ const AcceleratorData kAcceleratorData[] = { |
{ true, ui::VKEY_OEM_PLUS, ui::EF_ALT_DOWN, TOGGLE_MAXIMIZED }, |
{ true, ui::VKEY_OEM_PLUS, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, |
WINDOW_POSITION_CENTER }, |
- { true, ui::VKEY_F2, ui::EF_CONTROL_DOWN, FOCUS_NEXT_PANE }, |
- { true, ui::VKEY_F1, ui::EF_CONTROL_DOWN, FOCUS_PREVIOUS_PANE }, |
+ { true, ui::VKEY_BROWSER_FORWARD, ui::EF_CONTROL_DOWN, FOCUS_NEXT_PANE }, |
+ { true, ui::VKEY_BROWSER_BACK, ui::EF_CONTROL_DOWN, FOCUS_PREVIOUS_PANE }, |
// Media Player shortcuts. |
{ true, ui::VKEY_MEDIA_NEXT_TRACK, ui::EF_NONE, MEDIA_NEXT_TRACK}, |