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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2482853002: Suppress KeyUp events after PreHandleKeyboardEvent consumes RawKeyDown (Closed)
Patch Set: andt typo Created 4 years, 1 month 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 2ed1c42890ba53f5e6532d609fc8b23a61006c17..6afd94b6d625aa4acbf3c9f4e3badc934b3297fd 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1727,9 +1727,8 @@ void RenderWidgetHostViewAura::OnWindowFocused(aura::Window* gained_focus,
input_method->SetFocusedTextInputClient(this);
// Often the application can set focus to the view in response to a key
- // down. However the following char event shouldn't be sent to the web
- // page.
- host_->SuppressNextCharEvents();
+ // down. However, the following events shouldn't be sent to the web page.
+ host_->SuppressEventsUntilKeyDown();
}
BrowserAccessibilityManager* manager =

Powered by Google App Engine
This is Rietveld 408576698