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

QML Shortcut item with StandardKey.NextChild and StandardKey.PreviousChild sequences do not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.7, 6.3.2
    • None
    • macOS

    Description

       

      The QML Shortcut item does not trigger the signal activated() after pressing:

      • Ctrl+}
      • Forward,
      • Ctrl+Tab
      • Ctrl+{
      • Back
      • Ctrl+Shift+Tab
      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
      
          Shortcut {
              sequence: StandardKey.NextChild"
              onActivated: {
                  console.log("onActivated NextChild")
              }
      
          }
      
          Shortcut {
              sequence: StandardKey.PreviousChild"
              onActivated: {
                  console.log("onActivated PreviousChild")
              }
      
          }
      
      }
      
      

       

      Also, the shortcut does not work if you do it like this:

          Shortcut {
              sequence: "Ctrl+Tab"
              onActivated: {
                  console.log("onActivated NextChild")
              }
      
          }
          
          Shortcut {
              sequence: "Ctrl+Shift+Tab"
              onActivated: {
                  console.log("onActivated PreviousChild")
              }
          }
      

      masOS Monterey 12.6

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            andrei haladok Andrei Haladok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes