Bug 76988 - AltGraph is supposed to be true if Alt and Ctrl are pressed
Summary: AltGraph is supposed to be true if Alt and Ctrl are pressed
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks: 76198 93017 38241 40999
  Show dependency treegraph
 
Reported: 2012-01-25 01:08 PST by Eric Seidel (no email)
Modified: 2024-01-29 16:51 PST (History)
5 users (show)

See Also:


Attachments
speculative fix (1.99 KB, patch)
2012-01-25 01:31 PST, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2012-01-25 01:08:12 PST
AltGraph is supposed to be true if Alt and Ctrl are pressed

It's unclear if we want this.  But I suspect some German sites might like us to support the AltGraph key, even in this synthesized manner. :)

http://samples.msdn.microsoft.com/ietestcenter/domevents/KeyboardEvent.modifiers.html
http://www.w3.org/TR/DOM-Level-3-Events/#key-AltGraph
Comment 1 Eric Seidel (no email) 2012-01-25 01:31:43 PST
Created attachment 123899 [details]
speculative fix
Comment 2 Alexey Proskuryakov 2012-01-25 08:43:53 PST
Is this always the case in IE, or only for keyboard layout that actually have AltGr?
Comment 3 Eric Seidel (no email) 2012-01-25 13:53:16 PST
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.
Comment 4 Alexey Proskuryakov 2012-01-25 14:46:01 PST
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.
Comment 5 Ahmad Saleem 2024-01-26 17:09:05 PST
altGraphKey is now gone from WebKit as well as of this commit:

https://github.com/WebKit/WebKit/commit/f1f9f0045afe3ae23d359d72658b600e4a623ac5

Nothing to do here.
Comment 6 Masayuki Nakano 2024-01-28 22:14:32 PST
(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.
Comment 7 Ahmad Saleem 2024-01-29 16:51:13 PST
Reopening to see what still needs to be done.