mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 04:49:45 +02:00
textbox visibility
This commit is contained in:
parent
1365ecede3
commit
a0e209276b
1 changed files with 3 additions and 2 deletions
|
@ -84,7 +84,8 @@ keyboard.onFullyLoaded = function() {
|
||||||
leftMargin: 0,
|
leftMargin: 0,
|
||||||
font: {size: textFontSize},
|
font: {size: textFontSize},
|
||||||
text: "",
|
text: "",
|
||||||
alpha: 0.8
|
alpha: 0.8,
|
||||||
|
visible: keyboard.visible
|
||||||
});
|
});
|
||||||
updateTextOverlay();
|
updateTextOverlay();
|
||||||
// the cursor is being loaded after the keyboard, else it will be on the background of the keyboard
|
// the cursor is being loaded after the keyboard, else it will be on the background of the keyboard
|
||||||
|
@ -99,8 +100,8 @@ function keyPressEvent(event) {
|
||||||
keyboard.pressFocussedKey();
|
keyboard.pressFocussedKey();
|
||||||
} else if (event.key === ENTER_CHARCODE || event.key === RETURN_CHARCODE) {
|
} else if (event.key === ENTER_CHARCODE || event.key === RETURN_CHARCODE) {
|
||||||
keyboard.toggle();
|
keyboard.toggle();
|
||||||
|
Overlays.editOverlay(text, {visible: keyboard.visible});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function keyReleaseEvent(event) {
|
function keyReleaseEvent(event) {
|
||||||
|
|
Loading…
Reference in a new issue