From 0a41033c8568ad4b6f1ca0dc365ae60ee71a81df Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Sat, 7 Feb 2015 13:58:11 +0100 Subject: [PATCH] - set cursor invisible when virtual-keyboard is shown. - get rid of the invisible cursor/magnifier states when cleaning up keyboard. --- examples/libraries/virtualKeyboard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/libraries/virtualKeyboard.js b/examples/libraries/virtualKeyboard.js index 42185138e3..7d7d72ae12 100644 --- a/examples/libraries/virtualKeyboard.js +++ b/examples/libraries/virtualKeyboard.js @@ -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();