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

Side by Side Diff: ash/accelerators/accelerator_table.cc

Issue 11421055: Add power-user keyboard mode for ChromeOS with Search key acting as a typical Fn key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SkyNits Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/accelerators/accelerator_table.h" 5 #include "ash/accelerators/accelerator_table.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 { true, ui::VKEY_N, ui::EF_CONTROL_DOWN, NEW_WINDOW }, 101 { true, ui::VKEY_N, ui::EF_CONTROL_DOWN, NEW_WINDOW },
102 { true, ui::VKEY_T, ui::EF_CONTROL_DOWN, NEW_TAB }, 102 { true, ui::VKEY_T, ui::EF_CONTROL_DOWN, NEW_TAB },
103 103
104 { true, ui::VKEY_F3, 104 { true, ui::VKEY_F3,
105 ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 105 ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
106 ROTATE_WINDOWS }, 106 ROTATE_WINDOWS },
107 { true, ui::VKEY_MEDIA_LAUNCH_APP1, ui::EF_SHIFT_DOWN, 107 { true, ui::VKEY_MEDIA_LAUNCH_APP1, ui::EF_SHIFT_DOWN,
108 CYCLE_BACKWARD_LINEAR }, 108 CYCLE_BACKWARD_LINEAR },
109 { true, ui::VKEY_T, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, RESTORE_TAB }, 109 { true, ui::VKEY_T, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, RESTORE_TAB },
110 { true, ui::VKEY_PRINT, ui::EF_NONE, TAKE_SCREENSHOT }, 110 { true, ui::VKEY_PRINT, ui::EF_NONE, TAKE_SCREENSHOT },
111 // On Chrome OS, Search key is mapped to LWIN. 111 // On Chrome OS, Search key is mapped to LWIN. The Search key binding should
112 // act on release instead of press when using Search as a modifier key for
113 // extended keyboard shortcuts.
112 { true, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST }, 114 { true, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST },
115 { false, ui::VKEY_LWIN, ui::EF_NONE, TOGGLE_APP_LIST },
113 { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_NONE, TOGGLE_APP_LIST }, 116 { true, ui::VKEY_MEDIA_LAUNCH_APP2, ui::EF_NONE, TOGGLE_APP_LIST },
114 { true, ui::VKEY_LWIN, ui::EF_ALT_DOWN, TOGGLE_CAPS_LOCK }, 117 { true, ui::VKEY_LWIN, ui::EF_ALT_DOWN, TOGGLE_CAPS_LOCK },
115 { true, ui::VKEY_VOLUME_MUTE, ui::EF_NONE, VOLUME_MUTE }, 118 { true, ui::VKEY_VOLUME_MUTE, ui::EF_NONE, VOLUME_MUTE },
116 { true, ui::VKEY_VOLUME_DOWN, ui::EF_NONE, VOLUME_DOWN }, 119 { true, ui::VKEY_VOLUME_DOWN, ui::EF_NONE, VOLUME_DOWN },
117 { true, ui::VKEY_VOLUME_UP, ui::EF_NONE, VOLUME_UP }, 120 { true, ui::VKEY_VOLUME_UP, ui::EF_NONE, VOLUME_UP },
118 { true, ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, FOCUS_LAUNCHER }, 121 { true, ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, FOCUS_LAUNCHER },
119 { true, ui::VKEY_S, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, FOCUS_SYSTEM_TRAY }, 122 { true, ui::VKEY_S, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, FOCUS_SYSTEM_TRAY },
120 { true, ui::VKEY_HELP, ui::EF_NONE, SHOW_KEYBOARD_OVERLAY }, 123 { true, ui::VKEY_HELP, ui::EF_NONE, SHOW_KEYBOARD_OVERLAY },
121 { true, ui::VKEY_OEM_2, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 124 { true, ui::VKEY_OEM_2, ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
122 SHOW_KEYBOARD_OVERLAY }, 125 SHOW_KEYBOARD_OVERLAY },
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 CYCLE_BACKWARD_MRU, 284 CYCLE_BACKWARD_MRU,
282 CYCLE_FORWARD_LINEAR, 285 CYCLE_FORWARD_LINEAR,
283 CYCLE_FORWARD_MRU, 286 CYCLE_FORWARD_MRU,
284 TOGGLE_MAXIMIZED, 287 TOGGLE_MAXIMIZED,
285 }; 288 };
286 289
287 const size_t kNonrepeatableActionsLength = 290 const size_t kNonrepeatableActionsLength =
288 arraysize(kNonrepeatableActions); 291 arraysize(kNonrepeatableActions);
289 292
290 } // namespace ash 293 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698