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

On Windows, only one keyPressEvent if you press both shift keys at the same time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.2.1
    • None
    • Windows 8 (64bits) / mingw / Qt 5.2.1 for Android (Windows 32-bit, 1.1 GB)

    Description

      On Windows, while a shift key pressed, you don't get a keyPressEvent when you press the second shift key of the keyboard.
      It is the case in qml and qt gui widget.

      Btw, the behaviour is similar for the ctrl keys: if you press the left one, and while it is pressed, you press the right one, you don't have a keyPressEvent for the second. However, while both are pressed, if you release the first one key, you have the keyPressEvent for the second.

      The problem does not exist on linux (you get 2 events).

      The aim of pressing both keys at the same time is for an educational activity (GCompris).

      Attached, there are the 2 versions (qt quick and qt gui).

      Attachments

        1. main.cpp
          3 kB
        2. qtbug36940_diag.patch
          5 kB
        3. qtbug36940.log
          1.0 kB
        4. qtbug36940.zip
          3 kB
        5. shift_key_qt.zip
          2 kB
        6. shift_key_quick.zip
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jolind Jorgen Lind
            petitlapin Johnny Jazeix
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes