<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Key repeat under wayland behaves differently, making keyboard navigation e.g. in vim annoyingly unreliable"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=778019#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Key repeat under wayland behaves differently, making keyboard navigation e.g. in vim annoyingly unreliable"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=778019">bug 778019</a>
              from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=344764&action=diff" name="attach_344764" title="[PATCH] wayland: do not cancel key repeat on key press">attachment 344764</a> <a href="attachment.cgi?id=344764&action=edit" title="[PATCH] wayland: do not cancel key repeat on key press">[details]</a></span> <a href='review?bug=778019&attachment=344764'>[review]</a>
[PATCH] wayland: do not cancel key repeat on key press

The key repeat is stopped as soon as a key is pressed, so if the user
quickly presses a key while another is already pressed and being
repeated, key repeat gets cancelled:

 - key1 press
 - key1 repeat
 - key2 press -> key1 repeat stopped
 - key1 release
 - key 2 is not repeated even though it's kept depressed

This is a different behavior from X11, which confuses migrating users.

To mimic the X11 behavior, keep track of the number of keys pressed
simultaneously and cancel key repeat only when none is pressed.

This way, if a user pressed a key while another one is being repeated,
the new key press can possibly be repeated as well.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>