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

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 a bug in restoring the delegate of the parent nested runloop. 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[] = {
pkotwicz 2015/08/27 17:19:55 You should double check which accelerators should
afakhry 2015/08/28 01:24:41 I agree, however, I also believe that one should b
+ MEDIA_NEXT_TRACK,
+ MEDIA_PLAY_PAUSE,
+ MEDIA_PREV_TRACK,
+ NEXT_IME,
+ PREVIOUS_IME,
+ PRINT_UI_HIERARCHIES,
+ SWITCH_IME,
+ TAKE_PARTIAL_SCREENSHOT,
pkotwicz 2015/08/27 17:19:55 There are bugs with taking a partial screenshot wh
afakhry 2015/08/28 01:24:41 I see. That can be easily fixed later by maybe add
pkotwicz 2015/08/28 23:44:25 Can you file a bug for fixing this?
afakhry 2015/08/29 01:31:23 Will do once this CL lands. It doesn't make sense
+ 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,
pkotwicz 2015/08/27 17:19:55 The TOGGLE_MIRROR_MODE accelerator causes a crash
afakhry 2015/08/28 01:24:41 That's weird! I tried the mirror mode with two dis
pkotwicz 2015/08/28 23:44:25 To get the crash you must press the TOGGLE_MIRROR_
+ TOGGLE_SPOKEN_FEEDBACK,
+ TOGGLE_TOUCH_VIEW_TESTING,
pkotwicz 2015/08/27 17:19:55 This accelerator maximizes the window (if you are
afakhry 2015/08/28 01:24:41 Done.
+ 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