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

Issue 2641313002: Bypass key event suppression for PrintScreen (Closed)

Created:
3 years, 11 months ago by foolip
Modified:
3 years, 11 months ago
Reviewers:
sadrul
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bypass key event suppression for PrintScreen Because the OS (at least Windows/Linux) handled PrintScreen only the KeyUp event arrives in RenderWidgetHostImpl::ForwardKeyboardEvent(). Because RenderWidgetHostViewAura::OnWindowFocused() calls SuppressEventsUntilKeyDown(), this means that the first PrintScreen keyup event after load (or switching windows) will go missing. This is a conservative workaround, a riskier but better fix will be to remove the SuppressEventsUntilKeyDown() call entirely: https://codereview.chromium.org/2643243002 BUG=668969

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
M content/browser/renderer_host/render_widget_host_impl.cc View 2 chunks +9 lines, -1 line 2 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 2 chunks +34 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (7 generated)
foolip
PTAL
3 years, 11 months ago (2017-01-20 12:24:33 UTC) #8
sadrul
Do you plan on merging this back to some branch? If not, maybe we can ...
3 years, 11 months ago (2017-01-23 18:18:35 UTC) #9
foolip
On 2017/01/23 18:18:35, sadrul wrote: > Do you plan on merging this back to some ...
3 years, 11 months ago (2017-01-24 04:37:15 UTC) #10
foolip
3 years, 11 months ago (2017-01-24 04:38:12 UTC) #11
https://codereview.chromium.org/2641313002/diff/1/content/browser/renderer_ho...
File content/browser/renderer_host/render_widget_host_impl.cc (right):

https://codereview.chromium.org/2641313002/diff/1/content/browser/renderer_ho...
content/browser/renderer_host/render_widget_host_impl.cc:1212: // For
PrintScreen, a lone KeyUp event arrives. Bypass the suppression in this
On 2017/01/23 18:18:35, sadrul wrote:
> Is this the case on all platforms?

I tested Windows and Linux then, on Mac there isn't a PrintScreen key and I
didn't test using an external keyboard.

Powered by Google App Engine
This is Rietveld 408576698