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

Issue 2805075: [Mac]Handle edit commands from input methods correctly. (Closed)

Created:
10 years, 5 months ago by James Su
Modified:
9 years, 7 months ago
Reviewers:
Nico
CC:
chromium-reviews, John Grabowski, ben+cc_chromium.org, brettw-cc_chromium.org, pam+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

[Mac]Handle edit commands from input methods correctly. This CL does the following changes: 1.) It removes the EditCommandMatcher class and folds its behavior into RenderWidgetHostViewCocoa's -doCommandBySelector:. When -doCommandBySelector: is executed during execution of -keyDown: (the normal case), the commands are scheduled to be sent by -keyDown: later on, else they are sent immediately. 2.) If edit commands have been scheduled while IME composition is happening, delay delivery of the real key event (and eventual edit commands) until the fake key event(keycode 229) and IME composition have been sent to webkit. Safari sends the IME composition events first and deliver the key events after that, but according to HTML DOM Level3 Events Spec (http://www.w3.org/TR/DOM-Level-3-Events/#keyset-comp-input), the key events shall be sent before the IME composition events. BUG=48161 I should press 'enter' twice to search korean keyword in the omnibox and web fields BUG=48247 Pagedown/pageup inserts characters in textbox TEST=See bug reports. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52741

Patch Set 1 #

Patch Set 2 : Pass all edit commands to the webkit, except noop: #

Total comments: 20

Patch Set 3 : Update according to review feedback. #

Patch Set 4 : git-try -b mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -104 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 7 chunks +97 lines, -104 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
James Su
10 years, 5 months ago (2010-07-07 19:29:56 UTC) #1
Nico
Does ctrl-a / ctrl-e etc still work with this? I'm inclined to say that I ...
10 years, 5 months ago (2010-07-07 19:37:34 UTC) #2
James Su
On 2010/07/07 19:37:34, Nico wrote: > Does ctrl-a / ctrl-e etc still work with this? ...
10 years, 5 months ago (2010-07-07 20:05:00 UTC) #3
James Su
Hi, This CL has been updated to finally fix issue 48247. Regards James Su On ...
10 years, 5 months ago (2010-07-07 22:12:38 UTC) #4
Nico
> > tests for keyboard handling (which means your regressing CL has to be reverted ...
10 years, 5 months ago (2010-07-07 22:16:28 UTC) #5
James Su
And please notice that: the page up/down behavior before revision 50622 was actually wrong, which ...
10 years, 5 months ago (2010-07-07 22:23:37 UTC) #6
James Su
On 2010/07/07 22:16:28, Nico wrote: > > > tests for keyboard handling (which means your ...
10 years, 5 months ago (2010-07-07 22:29:13 UTC) #7
James Su
Just wondering when can I submit this CL, as the deadline is coming.
10 years, 5 months ago (2010-07-14 23:50:49 UTC) #8
Nico
(I tried to patch this in to play with it and got merge conflicts. Maybe ...
10 years, 5 months ago (2010-07-15 06:00:14 UTC) #9
James Su
There is a bad news of the ViewID CL: http://codereview.chromium.org/2973004 If you want to test ...
10 years, 5 months ago (2010-07-15 06:38:50 UTC) #10
James Su
Any update? On 2010/07/15 06:38:50, James Su wrote: > There is a bad news of ...
10 years, 5 months ago (2010-07-16 02:35:24 UTC) #11
Nico
This time it patched in correctly. However, for some reason XCode wants to recompile everything ...
10 years, 5 months ago (2010-07-16 05:18:24 UTC) #12
Nico
LG This needs a better CL description that describes _what_ this changes. Something like: "This ...
10 years, 5 months ago (2010-07-16 15:44:05 UTC) #13
Nico
http://codereview.chromium.org/2805075/diff/5001/6002 File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/2805075/diff/5001/6002#newcode1045 chrome/browser/renderer_host/render_widget_host_view_mac.mm:1045: if (!renderWidgetHostView_->render_widget_host_) This check is not after every call ...
10 years, 5 months ago (2010-07-16 15:46:45 UTC) #14
James Su
Ahh, I input "git-try -b mac" into the patch set description. http://codereview.chromium.org/2805075/diff/5001/6001 File chrome/browser/renderer_host/render_widget_host_view_mac.h (right): ...
10 years, 5 months ago (2010-07-16 18:56:36 UTC) #15
Nico
10 years, 5 months ago (2010-07-16 19:01:14 UTC) #16
LG, thanks!

Powered by Google App Engine
This is Rietveld 408576698