Index: sources/gui/qml/Keyboard.qml =================================================================== diff -u -rf7392d985121b21e9f9814e444b0810cd1d00b18 -r65558208e4968de9a5470ff5fda1ee2a9d00c793 --- sources/gui/qml/Keyboard.qml (.../Keyboard.qml) (revision f7392d985121b21e9f9814e444b0810cd1d00b18) +++ sources/gui/qml/Keyboard.qml (.../Keyboard.qml) (revision 65558208e4968de9a5470ff5fda1ee2a9d00c793) @@ -14,15 +14,16 @@ */ // Qt -import QtQuick 2.12 -import QtQuick.VirtualKeyboard 2.2 +import QtQuick 2.12 +import QtQuick.VirtualKeyboard 2.2 // Project // C++ imports - // Qml imports +import "qrc:/globals" + /*! * \brief Keyboard is the single keyboard in the entire applicaiton. */ @@ -32,8 +33,21 @@ } active : false // if active set to true then in the TextInput section handlers will show up, which is not nice. - y : Qt.inputMethod.visible ? parent.height - _root.height : parent.height + y : Qt.inputMethod.visible ? parent.height - _root.height - _bottomFiller.height : parent.height anchors.left : parent.left anchors.right : parent.right - Behavior on y { NumberAnimation { duration: 250 } } + + Behavior on y { NumberAnimation { duration: Variables.keybardAnimationDuration } } + // when an alarm is active then alarm covers the keyboard + // to avoid that keyboard moved a little higher + // because the keyboard height is calculated by InputPanel itself and can not be set, + // a gap beetween the bottom of the keyboard and the screen. + // the rectangle _bottomFiller is to fill that gap + Rectangle { id: _bottomFiller + height: Variables.minVGap + color: "black" // InputPanel background color. + anchors.left: _root.left + anchors.right: _root.right + anchors.top: _root.bottom + } }