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

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

Issue 1138523006: Enable keyboard accelerators while a menu is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Working solution (Even on Windows) Created 5 years, 6 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 unified diff | Download patch
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 WINDOW_CYCLE_SNAP_DOCK_RIGHT, 417 WINDOW_CYCLE_SNAP_DOCK_RIGHT,
418 WINDOW_MINIMIZE, 418 WINDOW_MINIMIZE,
419 TOGGLE_FULLSCREEN, 419 TOGGLE_FULLSCREEN,
420 TOGGLE_MAXIMIZED, 420 TOGGLE_MAXIMIZED,
421 WINDOW_POSITION_CENTER, 421 WINDOW_POSITION_CENTER,
422 ROTATE_WINDOW, 422 ROTATE_WINDOW,
423 }; 423 };
424 424
425 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow); 425 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow);
426 426
427 const AcceleratorAction kActionsKeepingMenuOpen[] = {
428 MEDIA_NEXT_TRACK,
429 MEDIA_PLAY_PAUSE,
430 MEDIA_PREV_TRACK,
431 NEXT_IME,
432 PREVIOUS_IME,
433 PRINT_UI_HIERARCHIES,
434 SWITCH_IME,
435 TAKE_PARTIAL_SCREENSHOT,
436 TAKE_SCREENSHOT,
437 TOGGLE_APP_LIST,
438 #if defined(OS_CHROMEOS)
439 BRIGHTNESS_DOWN,
440 BRIGHTNESS_UP,
441 DISABLE_CAPS_LOCK,
442 DISABLE_GPU_WATCHDOG,
443 KEYBOARD_BRIGHTNESS_DOWN,
444 KEYBOARD_BRIGHTNESS_UP,
445 SILENCE_SPOKEN_FEEDBACK,
446 TOGGLE_CAPS_LOCK,
447 TOGGLE_MIRROR_MODE,
448 TOGGLE_SPOKEN_FEEDBACK,
449 TOGGLE_TOUCH_VIEW_TESTING,
450 TOGGLE_WIFI,
451 VOLUME_DOWN,
452 VOLUME_MUTE,
453 VOLUME_UP,
454 #endif // defined(OS_CHROMEOS)
455 };
456
457 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen);
458
427 } // namespace ash 459 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698