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

numpad keys not properly working on Android and iOS

    XMLWordPrintable

Details

    • Android, iOS/tvOS/watchOS

    Description

      When using an external keyboard (or remote devices which simulate an external keyboard) on Android and iOS, then the numpad keys do not work correctly.

      Code to reproduce:

      import QtQuick
      import QtQuick.Controls.Material
      import QtQuick.Layouts
      
      ApplicationWindow {
          id: window
          width: 640
          height: 480
          visible: true
          title: qsTr("Test")
      
          Label {
              id: label
              width: parent.width
              wrapMode: Text.WordWrap
          }
      
          Item {
              anchors.fill: parent
              focus: true
              Keys.onPressed: (event)=> {
                  console.log("Key: " + event.key);
                  label.text = label.text + " " + event.key + " np:" + (event.modifiers & Qt.KeypadModifier) + "\n";
              }
          }
      }
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            Harald Meyer Harald Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes