<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement getModifierState for KeyboardEvent"
   href="https://bugs.webkit.org/show_bug.cgi?id=40999#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement getModifierState for KeyboardEvent"
   href="https://bugs.webkit.org/show_bug.cgi?id=40999">bug 40999</a>
              from <span class="vcard"><a class="email" href="mailto:webkit&#64;chrisrebert.com" title="Chris Rebert &lt;webkit&#64;chrisrebert.com&gt;"> <span class="fn">Chris Rebert</span></a>
</span></b>
        <pre>KeyboardEvent.getModifierState() is useful for purposes besides AltGr, including on Macs; this bug should really be marked &quot;Platform: All&quot;. (Looks like nobody has even mentioned non-AltGr use cases thus far.)

For example, the 'Accel' virtual modifier key (<a href="http://www.w3.org/TR/DOM-Level-3-Events-key/#keys-modifier">http://www.w3.org/TR/DOM-Level-3-Events-key/#keys-modifier</a> ) allows you to write keyboard shortcut event handlers without having to detect what OS you're on, since the browser determines for you whether Ctrl or ⌘Command is the customary modifier key for keyboard shortcuts on the user's OS).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>