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

keyRelease for 'ctrl' has 0 as key

    XMLWordPrintable

Details

    Description

      When I release the ctrl-key and catch it in a keyPressEvent handler, QKeyEvent::key() returns 0 for the event instead of 0x1000021. The modifier is still correct (0x4000000), and Alt and Shift keys do work as expected.

      Qt 5.0 did not have this bug. I'm using Qt 5.2.1 on (Gentoo) Linux.

      I have attached a simple test case and a simple Makefile for building the test using g++.

      Attachments

        1. ctrlkey.cpp
          0.4 kB
        2. Makefile
          0.3 kB
        3. release.patch
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            liaqi Liang Qi
            manyac Maik Nijhuis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes