diff --git a/Main.qml b/Main.qml index 17d2993..fe00928 100644 --- a/Main.qml +++ b/Main.qml @@ -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: [ diff --git a/Themes/theme1.conf b/Themes/theme1.conf index 676505f..765053d 100644 --- a/Themes/theme1.conf +++ b/Themes/theme1.conf @@ -5,7 +5,6 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" # Default 0, Options: from 0 to min(screen width/2,screen height/2). -# Currently breaks virtual keyboard. Font="Open Sans" FontSize="" @@ -87,6 +86,11 @@ HaveFormBackground="false" FormPosition="center" # Default: left, Options: left, center, right. +#################### Virtual Keyboard #################### + +VirtualKeyboardPosition="center" +# Default: left, Options: left, center, right. + #################### Interface Behavior #################### HideVirtualKeyboard="false"