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

Issue 2973463002: MacViews: Don't InsertChar() for consumed events. (Closed)

Created:
3 years, 5 months ago by tapted
Modified:
3 years, 5 months ago
Reviewers:
msw
CC:
chromium-reviews, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, nona+watch_chromium.org, mac-reviews_chromium.org, James Su, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Don't InsertChar() for consumed events. Currently, BridgedContentView ignores KeyEvent::handled() when processing a key event both as a KeyDown and as text input. Handling should only proceed to text input when the event isn't handled after first being sent to OnKeyEvent handlers. Otherwise, it means a <space> on a control that causes a textfield to be focused will also send that space as input to the textfield. BUG=732229 Review-Url: https://codereview.chromium.org/2973463002 Cr-Commit-Position: refs/heads/master@{#484475} Committed: https://chromium.googlesource.com/chromium/src/+/a42d24fc97610d00ddf15722e14aa0f413e56561

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Fix non-mac #

Total comments: 6

Patch Set 4 : Respond to commments #

Patch Set 5 : Rebase (patch failure due to r484422) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
M ui/views/cocoa/bridged_content_view.mm View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 3 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 27 (22 generated)
tapted
Hi Mike, please take a look https://codereview.chromium.org/2973463002/diff/40001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/2973463002/diff/40001/ui/views/controls/textfield/textfield_unittest.cc#newcode160 ui/views/controls/textfield/textfield_unittest.cc:160: return DispatchKeyEventPostIME(key); Note ...
3 years, 5 months ago (2017-07-04 08:13:15 UTC) #11
msw
lgtm with a q and a nit. https://codereview.chromium.org/2973463002/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2973463002/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode533 ui/views/cocoa/bridged_content_view.mm:533: if (charEvent.handled()) ...
3 years, 5 months ago (2017-07-05 19:21:21 UTC) #12
tapted
Thanks Mike! https://codereview.chromium.org/2973463002/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2973463002/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode533 ui/views/cocoa/bridged_content_view.mm:533: if (charEvent.handled()) On 2017/07/05 19:21:21, msw wrote: ...
3 years, 5 months ago (2017-07-06 05:58:07 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2973463002/80001
3 years, 5 months ago (2017-07-06 05:58:33 UTC) #24
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 06:04:05 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a42d24fc97610d00ddf15722e14a...

Powered by Google App Engine
This is Rietveld 408576698