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

Tab key is handled twice on QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.8.3, 5.0.0
    • None
    • Mac OS 10.8.1
    • macOS

    Description

      Situation:
      Keys.onPressed handler responses twice when Tab key is pressed once.

      Source code:
      Rectangle {
      width: 360
      height: 360
      TextInput {
      anchors.fill: parent
      text: "text"
      Keys.onPressed:

      { console.log("Key Pressed " + event.key); }

      }
      }

      Step:
      1. Run the above QML Application
      2. Click the test so that the caret appears
      3. Press Tab key once.

      Result:
      The following messages are showing on the console

      Qml debugging is enabled. Only use this in a safe environment!
      Key Pressed 16777217
      Key Pressed 16777217

      Expected:
      "Key Pressed 16777217" should be printed just once.

      Thank you.

      Attachments

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

        Activity

          People

            martinj Martin Jones
            remember0523 Critical Mass
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes