Verified Commit b91c8177 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applet: add keyboard navigation in QR window

To close the window by using keyboard.

CCBUG: 455950
parent fc349521
Pipeline #196334 passed with stage
in 2 minutes and 16 seconds
......@@ -18,13 +18,20 @@ Window {
property alias content: dataInput.content
function destroyWindow() {
window.close();
window.destroy();
}
Shortcut {
sequences: [StandardKey.Back, StandardKey.Cancel, StandardKey.Close, StandardKey.Delete, StandardKey.Quit]
onActivated: window.destroyWindow()
}
MouseArea {
anchors.fill: parent
onClicked: {
window.visible = false
window.destroy()
}
onClicked: window.destroyWindow()
Prison.Barcode {
id: dataInput
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment