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

    • Platform/s:
      iOS/tvOS/watchOS

      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

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              nagrohn Nahomi Gröhn
              Votes:
              7 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes