Commit 920a469b 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

(cherry picked from commit b91c8177)
parent b34338bd
Pipeline #196370 passed with stage
in 1 minute and 57 seconds
......@@ -18,13 +18,20 @@ Window {
property alias content: dataInput.content
function destroyWindow() {
Shortcut {
sequences: [StandardKey.Back, StandardKey.Cancel, StandardKey.Close, StandardKey.Delete, StandardKey.Quit]
onActivated: window.destroyWindow()
MouseArea {
anchors.fill: parent
onClicked: {
window.visible = false
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