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

Android: Nothing happens when hitting enter on the virtual keyboard

    XMLWordPrintable

Details

    Description

      Run the following code:

      import QtQuick 2.0
      
      Rectangle {
          id: topLevel
          color: "#b0b0b0"
      
          Text {
              id: t
              text: "Qt 5 on Android"
              anchors.top: parent.top
              anchors.horizontalCenter: parent.horizontalCenter
      
              font.pixelSize: parent.height / 15
          }
      
          Rectangle {
              anchors.top: t.bottom
              anchors.topMargin: 10
              anchors.left: parent.left
              anchors.leftMargin: 10
              anchors.rightMargin: 10
              anchors.right: parent.right
              height: parent.height / 10
              border.color: "black"
              border.width: 2
              color: "white"
      
              TextInput {
                  anchors.fill: parent
                  font.pixelSize: height - 20
                  color: "black"
              }
          }
      }
      

      1. Click on the text input to give it keyboard focus.
      2. Type some text.
      3. Hit the enter-button on the virtual keyboard.

      Nothing happens. I would expect this to either produce a key event in QML or close the virtual keyboard.

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes