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

numpad keys not properly working on Android and iOS

XMLWordPrintable

    • Android, iOS/tvOS/watchOS

      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";
              }
          }
      }
      

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

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

              Created:
              Updated:

                There are no open Gerrit changes