Keys.onReturnPressed:, Keys.onEnterPressed: , Keys.onEscapePressed: not working

  • @ Button {
    id: btnStart
    iconsrc: qsTr("")
    text: qsTr("START")
    visible: false
    anchors { top: txtSelectVehicle.bottom; topMargin: 10; left: txtSelectVehicle.left }
    focus: true
    Keys.onReturnPressed: {
    console.log(event.key + "enterrrrrrrrrrrrrrrrrrrrrrrrrrrr")

            Keys.onEnterPressed: console.log("enter")
               Keys.onEscapePressed: console.log("esc")
               Keys.onDeletePressed: console.log("delete")


Log in to reply

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