1
0
Fork 0
mirror of https://github.com/vinceliuice/MacSequoia-kde.git synced 2024-11-22 13:50:13 +00:00
MacSequoia-kde/sddm/MacSequoia-5.0/components/VirtualKeyboard_wayland.qml

26 lines
732 B
QML
Raw Normal View History

2024-06-30 04:16:38 +00:00
/*
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
}
}