<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>76988</bug_id>
          
          <creation_ts>2012-01-25 01:08:12 -0800</creation_ts>
          <short_desc>AltGraph is supposed to be true if Alt and Ctrl are pressed</short_desc>
          <delta_ts>2024-01-29 16:51:13 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>76198</blocked>
    
    <blocked>93017</blocked>
    
    <blocked>38241</blocked>
    
    <blocked>40999</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>masayuki</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>542065</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-25 01:08:12 -0800</bug_when>
    <thetext>AltGraph is supposed to be true if Alt and Ctrl are pressed

It&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542074</commentid>
    <comment_count>1</comment_count>
      <attachid>123899</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-25 01:31:43 -0800</bug_when>
    <thetext>Created attachment 123899
speculative fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542306</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-01-25 08:43:53 -0800</bug_when>
    <thetext>Is this always the case in IE, or only for keyboard layout that actually have AltGr?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542595</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-01-25 13:53:16 -0800</bug_when>
    <thetext>This bug is about keyboards which don&apos;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&apos;s a real key and not synthesized in this manner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542650</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-01-25 14:46:01 -0800</bug_when>
    <thetext>What I&apos;m saying is that even the synthesized behavior can be layout dependent. AltGr isn&apos;t useful on its own, it is just a modifier that lets you type certain characters easier, and that depends on layout.

Anyway, I&apos;d guess that any site that cares about AltGr also expects Windows and language-specific layout, and won&apos;t work well in a different environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008083</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-26 17:09:05 -0800</bug_when>
    <thetext>altGraphKey is now gone from WebKit as well as of this commit:

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

Nothing to do here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008377</commentid>
    <comment_count>6</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2024-01-28 22:14:32 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #5)
&gt; altGraphKey is now gone from WebKit as well as of this commit:
&gt; 
&gt; https://github.com/WebKit/WebKit/commit/
&gt; f1f9f0045afe3ae23d359d72658b600e4a623ac5
&gt; 
&gt; Nothing to do here.

`.altGraphKey` is not available in `UIEvent` nor `EventModifierInit`. However, there are `modifierAltGraph` in `EventModifierInit` and `getModifierState(&quot;AltGraph&quot;)` 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008734</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-01-29 16:51:13 -0800</bug_when>
    <thetext>Reopening to see what still needs to be done.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>123899</attachid>
            <date>2012-01-25 01:31:43 -0800</date>
            <delta_ts>2012-01-25 01:31:43 -0800</delta_ts>
            <desc>speculative fix</desc>
            <filename>bug-76988-20120125013142.patch</filename>
            <type>text/plain</type>
            <size>2041</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA1NzEzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggOTJmZTVmMTc1ZTcwMDBh
MGE5N2YyM2I4NGYyYTgwYWQxMmJlZjUyNS4uOGU4ZDkxYzg3YTkyMzA1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0dXJuIG1ldGFLZXkoKTsK
KyAgICBpZiAoa2V5SWRlbnRpZmllciA9PSAiQWx0R3JhcGgiKQorICAgICAgICByZXR1cm4gY3Ry
bEtleSgpICYmIGFsdEtleSgpOworICAgIC8vIEZJWE1FOiBEbyB3ZSBuZWVkIHRvIHN1cHBvcnQg
Q2Fwc0xvY2ssIE51bUxvY2ssIFNjcm9sbCBTeW1ib2xMb2NrLCBGbiBvciBXaW4/CisgICAgLy8g
aHR0cDovL3d3dy53My5vcmcvVFIvRE9NLUxldmVsLTMtRXZlbnRzLyNldmVudHMtS2V5Ym9hcmRF
dmVudC1nZXRNb2RpZmllclN0YXRlCiAgICAgcmV0dXJuIGZhbHNlOwogfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>