Button pressed by Enter key
-
Hi,
In my popup window I have button like below:
Button { id: ok_btn text: "OK" width: 200 height: 50 palette.buttonText: "white" background: Rectangle { color: "green" } focus: true Keys.onEnterPressed: { console.log("Enter pressed!!!!!!!!!") } onClicked: { console.log("Clicked!!!!!!!!!") } }
Why press "Enter" doesn't work. ?
-
Hi,
In my popup window I have button like below:
Button { id: ok_btn text: "OK" width: 200 height: 50 palette.buttonText: "white" background: Rectangle { color: "green" } focus: true Keys.onEnterPressed: { console.log("Enter pressed!!!!!!!!!") } onClicked: { console.log("Clicked!!!!!!!!!") } }
Why press "Enter" doesn't work. ?
@Damian7546
two questions, does your Button also have activeFocus ? and are you sure, you're pressing,enter
and notreturn
? -
@Damian7546
two questions, does your Button also have activeFocus ? and are you sure, you're pressing,enter
and notreturn
?@J-Hilk said in Button pressed by Enter key:
and are you sure, you're pressing, enter and not return ?
You are right, I press return:/
-