Update: Added ability to change virtual keyboard position and fixed ScreenPadding when virtual keyboard is enabled.

This commit is contained in:
Keyitdev
2024-10-05 17:51:23 +02:00
parent 9f38ce4372
commit 44fb2ff228
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -140,7 +140,11 @@ Pane {
property bool keyboardActive: item ? item.active : false
// x * 0.4 = x / 2.5
width: config.KeyboardSize == "" ? parent.width * 0.4 : parent.width * config.KeyboardSize
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.left: config.VirtualKeyboardPosition == "left" ? parent.left : undefined;
anchors.horizontalCenter: config.VirtualKeyboardPosition == "center" ? parent.horizontalCenter : undefined;
anchors.right: config.VirtualKeyboardPosition == "right" ? parent.right : undefined;
z: 1
function switchState() { state = state == "hidden" ? "visible" : "hidden"}
states: [