Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77208

Key release events shouldn't appear in auto-repeat key sequences

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.12.4, 5.13.0
    • Fix Version/s: 5.14.0 Beta3
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      Linux/X11, Windows
    • Commits:
      24bb272ac83fe42ad4cab58a9e97bdf2a53d2be8 (qt/qtwebengine/5.15)

      Description

      Apparently when a key is held down when a browser has focus the JS KeyboardEvent API should only see one keyup event at the end of the sequence and .repeat should be false on it. Currently keyup events are sent for every repetition in the sequence (with .repeat set to true).

      Some refernences https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Auto-repeat_handling and http://unixpapa.com/js/key.html 

      You can test on this page https://unixpapa.com/js/testkey.html

      I only tested on X11 and Windows 10 (5.12) but I assume it happens on other desktop platforms too.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                juri.valdmann Jüri Valdmann
                Reporter:
                toofar toofar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes