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

Shift modifier does not work in key press event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.5, 5.1.1
    • Fix Version/s: 4.8.6, 5.2.0
    • Labels:
      None
    • Commits:
      Qt 5: c15e8517ef877a141df7cd5d4767d19ac81e7c2e Qt 4: 72f6bd8d51911f8a2a0dadc7fa10509fa86970a1

      Description

      Re-implemented QWidget::event(QEvent*) to catch key press event. But QKeyEvent::key() returns wrong value when pressing keys with Shift modifier.

      For example, if Shift+3 is pressed, QKeyEvent::key() returns '3' instead of '#'.

        Attachments

          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:
              jsiddiqi Jamshed Siddiqi
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes