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

QML - Key.onReleased event fired when the key has not been released

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.1.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      ArchLinux - Gnome 3.10.1 - Qt 5.1.1
    • Platform/s:
      Linux/X11

      Description

      The following code prints "called" after a key is pressed, even when the key has not been released, same happens with qtquick1. This behavior doesn't happen on Mac OS X and QNX (Blackberry 10).

      import QtQuick 2.0
      
      Rectangle {
          focus: true
      
          Keys.onReleased: {
              console.log("called")
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              paeglis Gatis Paeglis
              Reporter:
              fmunozs Fernando Munoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes