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

Issue 63117: A quick fix for Issue 9762 and 9763.... (Closed)

Created:
11 years, 8 months ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
jungshik at Google
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

A quick fix for Issue 9762 and 9763. This is caused by my change r12434 that does not check if there are any other keys pressed when a user presses left-control and left-shift keys (or right-control and right-shift keys). To fix this issue, this change does not only add the above check, but also it adds code that cancels updating the text direction if a user presses another key while he/she is pressing control and shift keys. BUG=9762 "Regression: Shift+Ctrl+Arrow selection combination also changes text direction in RTL UIs" BUG=9763 "Ctrl+Shift text alignment depends of the sides of both the Ctrl and the Shift keys" TEST=In a LTR <textarea> element, pressing a control key, pressing a right-shift key, releasing the right-shift key, and verify its text direction is changed to RTL. TEST=In an RTL <textarea> element, pressing a control key, pressing a left-shift key, releasing the left-shift key, and verify its text direction is changed to LTR. TEST=In a LTR <textarea> element, pressing a right-shift key, pressing a control key, releasing the right-shift key, and verify its text direction is still LTR. TEST=In a LTR <textarea> element, pressing a control key, pressing a right-shift key, releasing the control key, and verify its text direction is changed to RTL. TEST=In an RTL <textarea> element, pressing a left-shift key, pressing a control key, releasing the left-shift key, and verify its text direction is still RTL. TEST=In an RTL <textarea> element, pressing a control key, pressing a left-shift key, releasing the control key, and verify its text direction is changed to LTR. TEST=In a LTR <textarea> element, pressing a control key, pressing a right-shift key, pressing an arrow key, releasing the right-shift key, and verify its text direction is still LTR. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13588

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 1

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -20 lines) Patch
M chrome/browser/renderer_host/render_widget_host.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 8 2 chunks +72 lines, -17 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jungshik at Google
http://codereview.chromium.org/63117/diff/8/1011 File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/63117/diff/8/1011#newcode96 Line 96: (keystate[VK_LCONTROL] & kKeyDownMask)) { It seems that you're ...
11 years, 8 months ago (2009-04-08 21:33:17 UTC) #1
Hironori Bono
Thank you so much for your review and comment. I have updated my change (and ...
11 years, 8 months ago (2009-04-09 10:40:19 UTC) #2
jungshik at Google
http://codereview.chromium.org/63117/diff/11/1013 File chrome/browser/renderer_host/render_widget_host.h (right): http://codereview.chromium.org/63117/diff/11/1013#newcode405 Line 405: bool text_direction_canceled_; We have 2 boolean state variables, ...
11 years, 8 months ago (2009-04-09 17:18:04 UTC) #3
Hironori Bono
Thank you for your review and comments. http://codereview.chromium.org/63117/diff/11/1013 File chrome/browser/renderer_host/render_widget_host.h (right): http://codereview.chromium.org/63117/diff/11/1013#newcode405 Line 405: bool ...
11 years, 8 months ago (2009-04-10 07:25:03 UTC) #4
jungshik at Google
11 years, 8 months ago (2009-04-10 16:22:54 UTC) #5
LGTM !

Thank you for the explanation and the additional comment.

http://codereview.chromium.org/63117/diff/4004/4007
File chrome/browser/renderer_host/render_widget_host_view_win.cc (right):

http://codereview.chromium.org/63117/diff/4004/4007#newcode74
Line 74: //   If only left-control and left-shift keys are down.
nit: left-control and right-control here should be just 'a control key' (either
left or right).

Powered by Google App Engine
This is Rietveld 408576698