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

Windows: strange isAutoRepeat behaviour

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.4.1
    • Fix Version/s: None
    • Component/s: QPA: Windows
    • Environment:
      Windows 8.1

      Description

      Holding key down causes key events to be sent with isAutoRepeat=false (normal?). If focus leaves to another application while key is pressed down and is lifted there, coming back to Qt application and pressing the key again sends key event with isAutoRepeat=true once for release and once for press event, after which it stays false again. How ever, if key was held down the whole time, isAutoRepeat is always false.

      To reproduce:
      1. open notepad
      2. run attached application
      3. press key down and click notepad window
      4. release the key
      5. focus Qt application again and press same key down again

      There should be output that should be similar to this:

      key: press autorepeat: false
      key: release autorepeat: true
      key: press autorepeat: true
      key: release autorepeat: false
      

        Attachments

        1. qtbug46422_widgets.zip
          1 kB
        2. qtbug46422.zip
          3 kB
        3. qtbug46422.zip
          2 kB

          Issue Links

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

            Activity

              People

              Assignee:
              owolff Oliver Wolff
              Reporter:
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes