summaryrefslogtreecommitdiffstats
path: root/components/VirtualKeyboard_wayland.qml
diff options
context:
space:
mode:
authorPapoteur <yves.brungard_mageia@gadz.org>2022-08-31 20:15:37 +0200
committerPapoteur <yves.brungard_mageia@gadz.org>2022-08-31 20:15:37 +0200
commitc3bb39f229423114f81d79b76a07a9115ca65b03 (patch)
treeb8bb135a9a0997acb7ee694f619ba857432565d7 /components/VirtualKeyboard_wayland.qml
parent166238c8b718e7ceb4c1647adad35755465ffeed (diff)
downloadmageia-sddm-c3bb39f229423114f81d79b76a07a9115ca65b03.tar
mageia-sddm-c3bb39f229423114f81d79b76a07a9115ca65b03.tar.gz
mageia-sddm-c3bb39f229423114f81d79b76a07a9115ca65b03.tar.bz2
mageia-sddm-c3bb39f229423114f81d79b76a07a9115ca65b03.tar.xz
mageia-sddm-c3bb39f229423114f81d79b76a07a9115ca65b03.zip
Sync theme with Plasma oneHEADmaster
Diffstat (limited to 'components/VirtualKeyboard_wayland.qml')
-rw-r--r--components/VirtualKeyboard_wayland.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/components/VirtualKeyboard_wayland.qml b/components/VirtualKeyboard_wayland.qml
new file mode 100644
index 0000000..b15dbf5
--- /dev/null
+++ b/components/VirtualKeyboard_wayland.qml
@@ -0,0 +1,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
+ }
+}