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

Unified Diff: ash/accelerators/nested_accelerator_delegate.cc

Issue 308023002: Add EF_IS_REPEAT flag to KeyEvent to handle repeated accelerators correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ui::EF_IS_REPEAT in test instead Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/accelerators/accelerator_delegate.cc ('k') | chrome/browser/chromeos/events/event_rewriter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/nested_accelerator_delegate.cc
diff --git a/ash/accelerators/nested_accelerator_delegate.cc b/ash/accelerators/nested_accelerator_delegate.cc
index 9d30f43f2b9d32b17397e15761250dace812bb54..2fc3438c87aa2499c66810ea1cc63cc4a3c32907 100644
--- a/ash/accelerators/nested_accelerator_delegate.cc
+++ b/ash/accelerators/nested_accelerator_delegate.cc
@@ -62,11 +62,6 @@ NestedAcceleratorDelegate::Result NestedAcceleratorDelegate::ProcessAccelerator(
ash::Shell::GetInstance()->accelerator_controller();
if (!accelerator_controller)
return RESULT_NOT_PROCESSED;
-
- // Fill out context object so AcceleratorController will know what
- // was the previous accelerator or if the current accelerator is repeated.
- Shell::GetInstance()->accelerator_controller()->context()->UpdateContext(
- accelerator);
return accelerator_controller->Process(accelerator) ? RESULT_PROCESSED
: RESULT_NOT_PROCESSED;
}
« no previous file with comments | « ash/accelerators/accelerator_delegate.cc ('k') | chrome/browser/chromeos/events/event_rewriter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698