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

Unified Diff: ash/wm/overlay_event_filter.cc

Issue 267723008: Retires ui::TranslatedKeyEvent and replaces it with KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed AcceleratorControllerTest.MAYBE_ProcessOnce more. Created 6 years, 7 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/sticky_keys/sticky_keys_controller.cc ('k') | content/shell/browser/shell_platform_data_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overlay_event_filter.cc
diff --git a/ash/wm/overlay_event_filter.cc b/ash/wm/overlay_event_filter.cc
index 6221e5ed5bd55a9175567dd9beaf548f14b9d79e..cd5a487650aa9f5ab6a2d0b95162626f0a99cb00 100644
--- a/ash/wm/overlay_event_filter.cc
+++ b/ash/wm/overlay_event_filter.cc
@@ -28,10 +28,8 @@ void OverlayEventFilter::OnKeyEvent(ui::KeyEvent* event) {
// ui::VKEY_PROCESSKEY) since the key event is generated in response to a key
// press or release before showing the ovelay. This is important not to
// confuse key event handling JavaScript code in a page.
- if (event->type() == ui::ET_TRANSLATED_KEY_PRESS ||
- event->type() == ui::ET_TRANSLATED_KEY_RELEASE) {
+ if (event->IsTranslated())
return;
- }
if (delegate_ && delegate_->IsCancelingKeyEvent(event))
Cancel();
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.cc ('k') | content/shell/browser/shell_platform_data_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698