From d0dc46b282e0a62792d03be754f9017a7b030e3f Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Tue, 16 Oct 2018 01:33:23 -0700 Subject: [PATCH] lower keyboard --- src/state/index.js | 2 ++ src/templates/menu.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state/index.js b/src/state/index.js index 4e6384d..19e5492 100644 --- a/src/state/index.js +++ b/src/state/index.js @@ -160,6 +160,8 @@ AFRAME.registerState({ state.menuSelectedChallenge.image = utils.getS3FileUrl(id, 'image.jpg'); state.menuSelectedChallenge.downloadsText = `${challengeData.downloads} Plays`; computeMenuSelectedChallengeIndex(state); + + state.keyboardActive = false; }, menuchallengeunselect: state => { diff --git a/src/templates/menu.html b/src/templates/menu.html index 5587446..ce9ef37 100644 --- a/src/templates/menu.html +++ b/src/templates/menu.html @@ -217,7 +217,7 @@ id="keyboard" bind__super-keyboard="hand: activeHand === 'left' && '#leftHand' || '#rightHand'; show: keyboardActive" super-keyboard="label: Search from over 2500 songs!; labelColor: #FAFAFA; width: 1; hand: {{ DEBUG_KEYBOARD and '#mouseCursor' or '#rightHand' }}; imagePath: assets/img/keyboard/; injectToRaycasterObjects: false" - position="0 0.8 -1" + position="0 0.5 -1" rotation="-40 0 0" keyboard-raycastable search