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

Unified Diff: ash/wm/gestures/bezel_gesture_handler.cc

Issue 10977074: Toggling windows with (shift)-f5 and (shift)-alt-tab does not repeat on key repeat anymore. (Closed) Base URL: http://git.chromium.org/chromium/src.git@issue-135284-repeated-maximize
Patch Set: Created 8 years, 3 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 | « ash/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/bezel_gesture_handler.cc
diff --git a/ash/wm/gestures/bezel_gesture_handler.cc b/ash/wm/gestures/bezel_gesture_handler.cc
index cf783df7aed81f79066ae31e838d5f998867c1fc..c236708d59e1847cd46becbc5f513ee8f9da42ff 100644
--- a/ash/wm/gestures/bezel_gesture_handler.cc
+++ b/ash/wm/gestures/bezel_gesture_handler.cc
@@ -139,13 +139,20 @@ bool BezelGestureHandler::HandleApplicationControl(
const ui::GestureEvent& event) {
ash::AcceleratorController* accelerator =
ash::Shell::GetInstance()->accelerator_controller();
- if (start_location_ == BEZEL_START_LEFT && event.details().scroll_x() > 0)
- accelerator->PerformAction(CYCLE_BACKWARD_LINEAR, ui::Accelerator());
+ if (start_location_ == BEZEL_START_LEFT && event.details().scroll_x() > 0) {
+ accelerator->PerformAction(CYCLE_BACKWARD_LINEAR_PRESSED,
+ ui::Accelerator());
+ accelerator->PerformAction(CYCLE_BACKWARD_LINEAR_RELEASED,
+ ui::Accelerator());
+ }
Yusuke Sato 2012/09/28 06:51:50 } else if {
mtomasz 2012/10/01 07:41:28 Done.
else if (start_location_ == BEZEL_START_RIGHT &&
- event.details().scroll_x() < 0)
- accelerator->PerformAction(CYCLE_FORWARD_LINEAR, ui::Accelerator());
- else
+ event.details().scroll_x() < 0) {
+ accelerator->PerformAction(CYCLE_FORWARD_LINEAR_PRESSED, ui::Accelerator());
+ accelerator->PerformAction(CYCLE_FORWARD_LINEAR_RELEASED,
+ ui::Accelerator());
+ } else {
return false;
+ }
// No further notifications for this gesture.
return true;
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698