<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebKit provides a keypress event with wrong which/keyCode/charCode directly after a composition started with ^,´,` completes"
   href="https://bugs.webkit.org/show_bug.cgi?id=167880#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebKit provides a keypress event with wrong which/keyCode/charCode directly after a composition started with ^,´,` completes"
   href="https://bugs.webkit.org/show_bug.cgi?id=167880">bug 167880</a>
              from <span class="vcard"><a class="email" href="mailto:Carsten.driesner&#64;open-xchange.com" title="Carsten Driesner &lt;Carsten.driesner&#64;open-xchange.com&gt;"> <span class="fn">Carsten Driesner</span></a>
</span></b>
        <pre>I think there is no single correct solution for this scenario. Chrome and Firefox use different events to report what happens, but the events are consistent.

E.g. Chrome 56.0.2924.87 on Mac reports the following events (this time order is top to bottom)

- keydown 229
- compositionstart
- dom actually changed
- DOMCharacterDataModified
- DMSubtreeModified
- input
- keyup 187
- keydown 229
- textInput
- dom actually changed
- DOMCharacterDataModified
- DOMSubtreeModified
- dom actually changed
- DOMCharacterDataModified
- input
- compositionend, data=´v
- keyup 86

Both entered keys are notified by the &quot;compositionend&quot; event.

For your second  
The '´' character is reported by the &quot;compositionend&quot; event (which is correct as '´' starts a composition) and the following 'v' key by &quot;keydown/keypress/keyup&quot; events. Therefore there should be theoretical no problem to fix this issue, the values of which, charCode, keyCode must be in that case 118 (corresponding to the second key v). I am sure that internally this is less easy and there is a bunch of problems regarding state and so on.</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>