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

Issue 269084: Allow keyboard input to work in Mac plugins.... (Closed)

Created:
11 years, 2 months ago by Amanda Walker
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, jam, pam+watch_chromium.org
Visibility:
Public.

Description

Allow keyboard input to work in Mac plugins. Filed bug 25183 to revive "figure out why windows needs to invert the setDefaultHandled() logic", which has been a very long-standing question. BUG=19194 TEST=typing into text fields in plugin areas should work once they are focused by clicking on the plugin. jam: primary reviewer pkasting: FYI, since one of the changes is a TODO(pkasting) hbono: FYI, since this may improve IME compatibility as well Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29400

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 11

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -6 lines) Patch
M webkit/api/src/WebInputEventConversion.cpp View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M webkit/api/src/WebPluginContainerImpl.cpp View 1 2 3 4 5 2 chunks +22 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Amanda Walker
There's something strange going on (see my comments added near pkasting's TODO), but I was ...
11 years, 2 months ago (2009-10-14 21:12:53 UTC) #1
Peter Kasting
Any chance we can get to the bottom of the Windows side of this? This ...
11 years, 2 months ago (2009-10-14 21:35:18 UTC) #2
darin (slow to review)
http://codereview.chromium.org/269084/diff/1004/1006 File webkit/api/src/WebInputEventConversion.cpp (right): http://codereview.chromium.org/269084/diff/1004/1006#newcode249 Line 249: uint numChars = event.keyEvent()->text().length(); use std::min? (that's what ...
11 years, 2 months ago (2009-10-14 21:37:11 UTC) #3
jam
lgtm with the other comments
11 years, 2 months ago (2009-10-14 21:53:46 UTC) #4
Amanda Walker
I'll take another look at windows before checking this in, though if it takes more ...
11 years, 2 months ago (2009-10-14 22:04:16 UTC) #5
Hironori Bono
Greetings, Thank you for noticing this change. Your change for "WebInputEventConversion.cpp" is exactly the same ...
11 years, 2 months ago (2009-10-15 02:26:35 UTC) #6
Amanda Walker
On 2009/10/15 02:26:35, hbono wrote: > By the way, if you don't mind, would it ...
11 years, 2 months ago (2009-10-15 02:53:28 UTC) #7
darin (slow to review)
http://codereview.chromium.org/269084/diff/6001/7002 File webkit/api/src/WebInputEventConversion.cpp (right): http://codereview.chromium.org/269084/diff/6001/7002#newcode248 Line 248: if (event.keyEvent()->text() != NULL) { On 2009/10/15 02:26:35, ...
11 years, 2 months ago (2009-10-15 08:10:30 UTC) #8
Amanda Walker
11 years, 2 months ago (2009-10-15 12:34:51 UTC) #9
On 2009/10/15 08:10:30, darin wrote:
> Also, PlatformKeyboardEvent::text() returns a String.  It is strange to
compare
> a String to NULL.

Yes, I misunderstood the comment "Will be null for KeyUp and RawKeyDown events".
 Will change it to simply remove that check and just rely on the length.

Powered by Google App Engine
This is Rietveld 408576698