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

Unified Diff: ash/wm/window_cycle_controller.cc

Issue 2260973003: Don't handle the tab press event in the window cycle event filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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
« no previous file with comments | « no previous file | ash/wm/window_cycle_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_controller.cc
diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc
index 24d05f1a93cfba89ff079c5460d973f5a5549177..f1250d9081e4843a2286dd4a58ff0def9c829ed9 100644
--- a/ash/wm/window_cycle_controller.cc
+++ b/ash/wm/window_cycle_controller.cc
@@ -46,9 +46,13 @@ WindowCycleEventFilter::~WindowCycleEventFilter() {
}
void WindowCycleEventFilter::OnKeyEvent(ui::KeyEvent* event) {
- // Until the alt key is released, all key events are handled by this window
- // cycle controller: https://crbug.com/340339.
- event->StopPropagation();
+ // Until the alt key is released, all key events except the tab press (which
+ // is handled by the accelerator controller to call Step) are handled by this
+ // window cycle controller: https://crbug.com/340339.
+ if (event->key_code() != ui::VKEY_TAB ||
+ event->type() != ui::ET_KEY_PRESSED) {
+ event->StopPropagation();
+ }
// Views uses VKEY_MENU for both left and right Alt keys.
if (event->key_code() == ui::VKEY_MENU &&
event->type() == ui::ET_KEY_RELEASED) {
« no previous file with comments | « no previous file | ash/wm/window_cycle_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698