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

Qt app doesn't receive Shortcut or Keys.onPressed input when using physical keyboard

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 15576c961047231a49afda9b9ee0159ba132c0ae (qt/qtbase/dev)

    Description

      Qt application on iOS doesn't react to keyboard input when using physical keyboard.
      Please use the attached sample project (Qtbug85727.zip) to reproduce the problem.

      E.g.

                      Keys.onPressed:
                      {
                          if (event.key === Qt.Key_Left)
                          {
                              rect.color = switchColor ? "orange" : "pink"
                              switchColor = !switchColor
                          }
                      }
      

      How to reproduce :
      Use Qtbug85727.zip .
      Press the following keys/buttons to change the color of background
      Space key - Switch black and yellow
      Left key - Switch orange and pink
      Mouse left Button - green
      Mouse right button - red

      Expected behavior :
      The background color changes accordingly.

      Actual behavior :
      No reaction expect the mouse left button which works.

      Typing to TextField works as normal.

      Attachments

        For Gerrit Dashboard: QTBUG-85727
        # Subject Branch Project Status CR V

        Activity

          People

            andysh Andy Shaw
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            11 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes