blob: 1f20b16291b21616ca719ac0eb88de7af94f967f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
//![0]
import QtQuick 2.0
Item {
Item {
focus: true
Keys.onPressed: (event)=> {
console.log("KeyReader captured:",
event.text);
event.accepted = true;
}
}
}
//![0]
|