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(); |