Summary: | AltGraph is supposed to be true if Alt and Ctrl are pressed | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||
Component: | UI Events | Assignee: | Eric Seidel (no email) <eric> | ||||
Status: | REOPENED --- | ||||||
Severity: | Normal | CC: | abarth, ahmad.saleem792, ap, masayuki, rniwa | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 76198, 93017, 38241, 40999 | ||||||
Attachments: |
|
Description
Eric Seidel (no email)
2012-01-25 01:08:12 PST
Created attachment 123899 [details]
speculative fix
Is this always the case in IE, or only for keyboard layout that actually have AltGr? This bug is about keyboards which don't have an AltGraph key, or specifically operating systems which chose to synthesize AltGraph by the pressing of Alt + Cntl together. The question is if the Web should generally support such a behavior for synthesizing AltGraph, regardless of what the underlying operating system does. Bug 38241 and bug 40999 are more about the cases of supporting AltGraph where it's a real key and not synthesized in this manner. What I'm saying is that even the synthesized behavior can be layout dependent. AltGr isn't useful on its own, it is just a modifier that lets you type certain characters easier, and that depends on layout. Anyway, I'd guess that any site that cares about AltGr also expects Windows and language-specific layout, and won't work well in a different environment. altGraphKey is now gone from WebKit as well as of this commit: https://github.com/WebKit/WebKit/commit/f1f9f0045afe3ae23d359d72658b600e4a623ac5 Nothing to do here. (In reply to Ahmad Saleem from comment #5) > altGraphKey is now gone from WebKit as well as of this commit: > > https://github.com/WebKit/WebKit/commit/ > f1f9f0045afe3ae23d359d72658b600e4a623ac5 > > Nothing to do here. `.altGraphKey` is not available in `UIEvent` nor `EventModifierInit`. However, there are `modifierAltGraph` in `EventModifierInit` and `getModifierState("AltGraph")` in `UIEvent`. The latter returns `true` if the event is initialized with `modifierAltGraph = true` or represents a keyboard input which introduces a character which is different from the character without `AltGr` key on the keyboard layout. See https://bugzilla.mozilla.org/show_bug.cgi?id=900750#c24 for the detail about the user input case. Reopening to see what still needs to be done. |