Add Esc key support, but it's not working

I need to figure out why
This commit is contained in:
Luca Beltrame 2015-02-26 21:24:50 +01:00
parent 29bcd516d7
commit 786c8d1f44

View file

@ -323,9 +323,15 @@ Rectangle {
anchors.fill: parent
text: "" // FIXME
color: "white"
visible: false
}
}
Keys.onEscapePressed: {
closeButton.visible = false
imageOverlay.visible = false
}
onImageDoubleClicked: {
imageOverlay.visible = true