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

Issue 2601513002: MacViews: Mark key down event as handled when consumed by the IME. (Closed)

Created:
4 years ago by karandeepb
Modified:
4 years ago
CC:
tapted, chromium-reviews, tfarina, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Mark key down event as handled when consumed by the IME. r434436 changed how key events are handled on MacViews. It overrode _wantsKeyDownForEvent: to receive more key events from Cocoa and passed all unhandled key down events to the underlying views::Widget. However, key down events captured by the IME in the following NSTextInputClient methods were not marked as handled: - setMarkedText:selectedRange:replacementRange: - unmarkText: As a result, these key down events were erronously passed to the underlying views::Widget resulting in a regression in the IME behavior. This CL fixes the regression by marking the key down event as handled in the above mentioned methods. BUG=676615 Committed: https://crrev.com/85d9c68076c03f77b7c61a9c2e2056862bb9d189 Cr-Commit-Position: refs/heads/master@{#440483}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M ui/views/cocoa/bridged_content_view.mm View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
karandeepb
PTAL avi@. Can you review this since tapted@ is OOO. Have cc'd him on the ...
4 years ago (2016-12-22 15:49:04 UTC) #5
themblsha
These two are invoked via -doCommandBySelector:? LGTM.
4 years ago (2016-12-22 16:21:32 UTC) #6
Avi (use Gerrit)
lgtm
4 years ago (2016-12-22 19:43:14 UTC) #9
karandeepb
On 2016/12/22 16:21:32, themblsha wrote: > These two are invoked via -doCommandBySelector:? LGTM. No they ...
4 years ago (2016-12-22 20:03:49 UTC) #10
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/2601513002/1
4 years ago (2016-12-22 20:04:54 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-22 20:08:51 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-22 20:11:44 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/85d9c68076c03f77b7c61a9c2e2056862bb9d189
Cr-Commit-Position: refs/heads/master@{#440483}

Powered by Google App Engine
This is Rietveld 408576698