Creating Shortcut sequence with numbers -QML



  • I want to have a shortcut sequence which includes numbers.
    For eg.
    Shortcut {
    sequence: "Ctrl+Alt+Tab"
    onActivated: {
    console.log("sequence pressed")
    }

    instead of "Ctrl+Alt+Tab" ,I need to have 2,1,5 as the shortcut sequence.
    When i tried to give one number as sequence, it 's working.
    Shortcut {
    sequence: "1"
    }

    Similarly when I tried for more than one numbers , it's not working
    Shortcut {
    sequence: "1+2+3"
    }
    (or)
    Shortcut {
    sequence: "1,2,3"
    }


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.