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

Action keyboard shortcuts blocks keyPressEvent to Items

XMLWordPrintable

    • 929d6d6b9b31967f13bcd51a421678edcb06d184

      The QQuickControls Action item receives keyPressEvents before the Quick Items get a chance to evaluate them.

      This gives some serious limitations. For example: If "Space" is set as keyboard shortcut in a play/pause Action, it means the spacebar can never be used in a TextField input in the same application, even if the TextField has active focus. It gets worse once Action shortcuts are defined for cursor keys, or even single letter keys!

      The same scenario works much better using QWigets. QLineEdit will receive and accept the QKeyPressEvent first (if used there), so it doesn't propagate to the QAction at all. I suggest that QQuickControls Action should behave this way instead.

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

            frederik Frederik Gladhorn
            pyrrhula Ola Røer Thorsen
            Votes:
            3 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes