summaryrefslogtreecommitdiffstats
path: root/components/VirtualKeyboard_wayland.qml
blob: b15dbf51d6e189b5819980b5811d732fcf36f693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
    SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>

    SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/

import QtQuick 2.15
import org.kde.plasma.workspace.keyboardlayout 1.0 as Keyboards

Item {
    id: inputPanel
    readonly property bool active: Keyboards.KWinVirtualKeyboard.visible
    property bool activated: false
    visible: Keyboards.KWinVirtualKeyboard.visible

    x: Qt.inputMethod.keyboardRectangle.x
    y: Qt.inputMethod.keyboardRectangle.y
    height: Qt.inputMethod.keyboardRectangle.height
    width: Qt.inputMethod.keyboardRectangle.width

    onActivatedChanged: if (activated) {
        Keyboards.KWinVirtualKeyboard.enabled = true
    }
}