mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 06:10:52 +02:00
fix not collapsing keyboard
This commit is contained in:
parent
0bc95998c4
commit
d1969d649a
1 changed files with 4 additions and 2 deletions
|
@ -32,6 +32,8 @@ Rectangle {
|
||||||
|
|
||||||
color: hifi.colors.baseGray
|
color: hifi.colors.baseGray
|
||||||
|
|
||||||
|
property bool keyboardEnabled: HMD.active
|
||||||
|
property bool keyboardRaised: false
|
||||||
|
|
||||||
LetterboxMessage {
|
LetterboxMessage {
|
||||||
id: letterBoxMessage
|
id: letterBoxMessage
|
||||||
|
@ -380,7 +382,7 @@ Rectangle {
|
||||||
Component.onCompleted: scriptsModel.filterRegExp = new RegExp("^.*$", "i")
|
Component.onCompleted: scriptsModel.filterRegExp = new RegExp("^.*$", "i")
|
||||||
onActiveFocusChanged: {
|
onActiveFocusChanged: {
|
||||||
// raise the keyboard
|
// raise the keyboard
|
||||||
keyboard.raised = activeFocus;
|
root.keyboardRaised = activeFocus;
|
||||||
|
|
||||||
// scroll to the bottom of the content area.
|
// scroll to the bottom of the content area.
|
||||||
if (activeFocus) {
|
if (activeFocus) {
|
||||||
|
@ -481,7 +483,7 @@ Rectangle {
|
||||||
|
|
||||||
HifiControls.Keyboard {
|
HifiControls.Keyboard {
|
||||||
id: keyboard
|
id: keyboard
|
||||||
raised: false
|
raised: parent.keyboardEnabled && parent.keyboardRaised
|
||||||
numeric: false
|
numeric: false
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
|
|
Loading…
Reference in a new issue