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

Issue 99209: Don't insert ASCII character with ctrl(w/o/ alt) or meta is on.... (Closed)

Created:
11 years, 7 months ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Don't insert ASCII character with ctrl(w/o/ alt) or meta is on. On Gtk/Linux, it emits key events with ASCII text and ctrl on for ctrl-<x>. In WebKit, EditorClient::handleKeyboardEvent in WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp drops such events. On Mac, it emits key events with ASCII text and meta is on for Command-<x>. These key events should not emit text insert event. Alt key would be used to insert alternative character, so we should let through. Ctrl-Alt combination may equal to AltGr key, which is also used to insert alternative character. In summary, we can't think of a scenario where you'd use control(w/o alt) or meta to do insertion of a ASCII character. BUG=10846, 11070, 11165 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14921

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M webkit/glue/editor_client_impl.cc View 1 2 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
ukai
11 years, 7 months ago (2009-04-30 00:03:09 UTC) #1
ukai
11 years, 7 months ago (2009-04-30 00:04:16 UTC) #2
Avi (use Gerrit)
Comments are formatting. I think this is narrowly tailored enough to not break anything (I ...
11 years, 7 months ago (2009-04-30 00:10:37 UTC) #3
ukai
Thanks for review. http://codereview.chromium.org/99209/diff/1/2 File webkit/glue/editor_client_impl.cc (right): http://codereview.chromium.org/99209/diff/1/2#newcode620 Line 620: // Alt key would be ...
11 years, 7 months ago (2009-04-30 00:16:56 UTC) #4
Avi (use Gerrit)
Great. Tree's closed and it's late now. I'll land it tomorrow and we'll watch to ...
11 years, 7 months ago (2009-04-30 00:22:54 UTC) #5
ukai
On 2009/04/30 00:22:54, Avi wrote: > Great. Tree's closed and it's late now. I'll land ...
11 years, 7 months ago (2009-04-30 00:28:42 UTC) #6
ukai
On 2009/04/30 00:28:42, ukai wrote: > On 2009/04/30 00:22:54, Avi wrote: > > Great. Tree's ...
11 years, 7 months ago (2009-04-30 00:30:34 UTC) #7
Avi (use Gerrit)
Oh, I didn't see that you got commit privileges. Congratulations; let's hope this patch survives.
11 years, 7 months ago (2009-04-30 00:32:17 UTC) #8
Hironori Bono
Unfortunately, lots of European keyboards use AltGr (or control+alt) key to input ASCII characters (*1) ...
11 years, 7 months ago (2009-04-30 03:07:33 UTC) #9
ukai
On 2009/04/30 03:07:33, hbono wrote: > Unfortunately, lots of European keyboards use AltGr (or control+alt) ...
11 years, 7 months ago (2009-04-30 03:19:33 UTC) #10
ukai
On 2009/04/30 03:19:33, ukai wrote: > On 2009/04/30 03:07:33, hbono wrote: > > Unfortunately, lots ...
11 years, 7 months ago (2009-04-30 03:27:42 UTC) #11
Hironori Bono
As written in Issue 2215 (*1), an alt-key event also enables metaKey() on Windows. So, ...
11 years, 7 months ago (2009-04-30 03:28:17 UTC) #12
ukai
On 2009/04/30 03:28:17, hbono wrote: > As written in Issue 2215 (*1), an alt-key event ...
11 years, 7 months ago (2009-04-30 03:32:31 UTC) #13
Hironori Bono
FYI, this change blocks for me to submit a RenderViewTest which prevents Issue 10846 <http://codereview.chromium.org/92122>.
11 years, 7 months ago (2009-04-30 03:37:10 UTC) #14
Avi (use Gerrit)
On 2009/04/30 03:28:17, hbono wrote: > (*1) http://crbug.com/2215 hbono, that bug has been yours for ...
11 years, 7 months ago (2009-04-30 15:58:02 UTC) #15
Hironori Bono
11 years, 7 months ago (2009-05-01 02:04:05 UTC) #16
> hbono, that bug has been yours for a while. Any plans to fix it?

I have once fixed it but my change is reverted by a WebKit merge.

> Looks like it's causing the altgr issue that we're seeing on windows with
ukai's patch.

His change also prevents inserting a space character when pressing control+space
keys on Windows. So, fixing Issue 2215 does not totally fix Issue 10846. (Sorry
for its confusing title.) As noted in another comment of mine, it is not a good
idea to rely on the assumption that Windows doesn't send printable characters
when pressing a key and a control key.

Powered by Google App Engine
This is Rietveld 408576698