Index: denali.pro.user =================================================================== diff -u -r0552e825eebff72cbfd7f4f2fbb74b46c80f1e21 -r93dbee7bb0b6e799a602735d54c01aeebd0a2074 --- denali.pro.user (.../denali.pro.user) (revision 0552e825eebff72cbfd7f4f2fbb74b46c80f1e21) +++ denali.pro.user (.../denali.pro.user) (revision 93dbee7bb0b6e799a602735d54c01aeebd0a2074) @@ -1,6 +1,6 @@ - + EnvironmentId @@ -1536,7 +1536,7 @@ 1 false - -l -a + --disable-timeout --disable-alarm-no-minimize --disable-unhandled-report 3768 false true Index: denali.qrc =================================================================== diff -u -r108450c58851ff7c48c4607494b8cdae59952908 -r93dbee7bb0b6e799a602735d54c01aeebd0a2074 --- denali.qrc (.../denali.qrc) (revision 108450c58851ff7c48c4607494b8cdae59952908) +++ denali.qrc (.../denali.qrc) (revision 93dbee7bb0b6e799a602735d54c01aeebd0a2074) @@ -135,7 +135,7 @@ sources/gui/qml/main.qml sources/gui/qml/AlarmItem.qml sources/gui/qml/PowerItem.qml - sources/gui/qml/VirtualKeyboard.qml + sources/gui/qml/KeyboardItem.qml sources/gui/qml/SDItem.qml Index: sources/gui/qml/KeyboardItem.qml =================================================================== diff -u --- sources/gui/qml/KeyboardItem.qml (revision 0) +++ sources/gui/qml/KeyboardItem.qml (revision 93dbee7bb0b6e799a602735d54c01aeebd0a2074) @@ -0,0 +1,60 @@ +/*! + * + * Copyright (c) 2022-2022 Diality Inc. - All Rights Reserved. + * \copyright + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. + * + * \file KeyboardItem.qml + * \author (last) Behrouz NematiPour + * \date (last) 14-Jan-2022 + * \author (original) Behrouz NematiPour + * \date (original) 14-Jan-2022 + * + */ + +// Qt +import QtQuick 2.12 +import QtQuick.VirtualKeyboard 2.4 +import QtQuick.VirtualKeyboard.Settings 2.2 + +// Project +// C++ imports + +// Qml imports +import "qrc:/globals" + + +/*! + * \brief Keyboard is the single keyboard in the entire applicaiton. + */ +InputPanel { id : _root + function setVisible(vVisible) { + Qt.inputMethod.show() + visible = vVisible + } + + externalLanguageSwitchEnabled: true + 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 - _bottomFiller.height : parent.height + anchors.left : parent.left + anchors.right : parent.right + + 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 + } + Component.onCompleted: { + VirtualKeyboardSettings.locale = "en_US"; + console.log("Default keyboard locale set to : " + VirtualKeyboardSettings.locale) + } +} Fisheye: Tag 93dbee7bb0b6e799a602735d54c01aeebd0a2074 refers to a dead (removed) revision in file `sources/gui/qml/VirtualKeyboard.qml'. Fisheye: No comparison available. Pass `N' to diff? Index: sources/gui/qml/main.qml =================================================================== diff -u -r27cc308ff5113a9386899d3c8f8b29962a8498e1 -r93dbee7bb0b6e799a602735d54c01aeebd0a2074 --- sources/gui/qml/main.qml (.../main.qml) (revision 27cc308ff5113a9386899d3c8f8b29962a8498e1) +++ sources/gui/qml/main.qml (.../main.qml) (revision 93dbee7bb0b6e799a602735d54c01aeebd0a2074) @@ -318,7 +318,7 @@ } // keyboard should always be before AlarmItem to not to covet it. - VirtualKeyboard { id: _keyboard } + KeyboardItem { id: _keyboard } // AlarmItem should always be at the end so nothing covers it AlarmItem { id: _alarmItem ; z: 997 }