From d369b9c2a33305d457940c8626cb8db0387739ac Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Fri, 19 Oct 2018 01:47:31 +0000 Subject: [PATCH] Remove keyboard shortcuts, fix up immediate entry mode --- src/hub.js | 2 ++ src/react-components/ui-root.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hub.js b/src/hub.js index dc9ab1bdc..904bb63de 100644 --- a/src/hub.js +++ b/src/hub.js @@ -307,6 +307,8 @@ async function runBotMode(scene, entryManager) { document.addEventListener("DOMContentLoaded", async () => { const scene = document.querySelector("a-scene"); + scene.removeAttribute("keyboard-shortcuts"); // Remove F and ESC hotkeys from aframe + const hubChannel = new HubChannel(store); const entryManager = new SceneEntryManager(hubChannel); entryManager.init(); diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index c38b79d5e..a72231c2f 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -440,7 +440,7 @@ class UIRoot extends Component { if (!this.props.forcedVREntryType || !this.props.forcedVREntryType.endsWith("_now")) { this.goToEntryStep(ENTRY_STEPS.audio_setup); } else { - setTimeout(this.onAudioReadyButton, 3000); // Need to wait otherwise input doesn't work :/ + this.onAudioReadyButton(); } }; -- GitLab