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

Issue 12221133: Prevent translated key events (WM_CHAR) associated with key events that focus the WebContents fro... (Closed)

Created:
7 years, 10 months ago by jam
Modified:
7 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Prevent translated key events (WM_CHAR) associated with key events that focus the WebContents from being sent to the renderer, as they are not intended to target the renderer. Example: When the focus is in the omnibox, and a new URL is typed and Enter is pressed, the Enter keypress should focus the WebContents but the WebContents should not send the Enter char event to the current page. BUG=175634 TEST=open print preview, select "save as pdf" as the destination and then navigate in the url bar by typing a url then enter. The "choose file" dialog shouldn't come up. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181958

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jam
There are multiple ways of fixing this, I'm sending this as a proposal since I'm ...
7 years, 10 months ago (2013-02-12 06:10:12 UTC) #1
Ben Goodger (Google)
7 years, 10 months ago (2013-02-12 18:23:15 UTC) #2
LGTM but please edit the CL desc to read:

Prevent translated key events (WM_CHAR) associated with key events that focus
the WebContents from being sent to the renderer, as they are not intended to
target the renderer.

Example:

When the focus is in the omnibox, and a new URL is typed and Enter is pressed,
the Enter keypress should focus the WebContents but the WebContents should not
send the Enter char event to the current page.

Powered by Google App Engine
This is Rietveld 408576698