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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.14.0 Beta3
    • 5.12.4, 5.13.0
    • WebEngine
    • None
    • Linux/X11, Windows
    • 24bb272ac83fe42ad4cab58a9e97bdf2a53d2be8 (qt/qtwebengine/5.15)

      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.

        For Gerrit Dashboard: QTBUG-77208
        # Subject Branch Project Status CR V

            juri.valdmann Jüri Valdmann (Inactive)
            toofar toofar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes