- set cursor invisible when virtual-keyboard is shown.

- get rid of the invisible cursor/magnifier states when cleaning up keyboard.
This commit is contained in:
Thijs Wenker 2015-02-07 13:58:11 +01:00
parent 818aac01d1
commit 0a41033c85

View file

@ -321,6 +321,8 @@ Keyboard = (function(params) {
for (var i = 0; i < this.keys.length; i++) {
this.keys[i].remove();
}
// resets the cursor and magnifier
this.updateVisibility(false);
};
this.show = function() {
@ -340,6 +342,7 @@ Keyboard = (function(params) {
if (HMD.magnifier == visible) {
HMD.toggleMagnifier();
}
Window.cursorVisible = !visible;
Overlays.editOverlay(tthis.background, { visible: tthis.visible });
for (var i = 0; i < this.keys.length; i++) {
this.keys[i].updateVisibility();