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

Unified 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: Fixed tests errors. Created 5 years, 4 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 3f02fccf3b990a0a35f5f9f56727a8f3087465e4..829d178cf0b66b73a5db39a1cf5a861f4215f1d6 100644
--- a/ash/accelerators/accelerator_table.cc
+++ b/ash/accelerators/accelerator_table.cc
@@ -427,4 +427,35 @@ const AcceleratorAction kActionsNeedingWindow[] = {
const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow);
+const AcceleratorAction kActionsKeepingMenuOpen[] = {
+ MEDIA_NEXT_TRACK,
+ MEDIA_PLAY_PAUSE,
+ MEDIA_PREV_TRACK,
+ NEXT_IME,
+ PREVIOUS_IME,
+ PRINT_UI_HIERARCHIES,
+ SWITCH_IME,
+ TAKE_PARTIAL_SCREENSHOT,
+ TAKE_SCREENSHOT,
+#if defined(OS_CHROMEOS)
+ BRIGHTNESS_DOWN,
+ BRIGHTNESS_UP,
+ DISABLE_CAPS_LOCK,
+ DISABLE_GPU_WATCHDOG,
+ KEYBOARD_BRIGHTNESS_DOWN,
+ KEYBOARD_BRIGHTNESS_UP,
+ SILENCE_SPOKEN_FEEDBACK,
+ TOGGLE_CAPS_LOCK,
+ TOGGLE_MIRROR_MODE,
+ TOGGLE_SPOKEN_FEEDBACK,
+ TOGGLE_TOUCH_VIEW_TESTING,
+ TOGGLE_WIFI,
+ VOLUME_DOWN,
+ VOLUME_MUTE,
+ VOLUME_UP,
+#endif // defined(OS_CHROMEOS)
+};
+
+const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen);
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698