From 18a08a81c8bcab12983897555e2c1cb864b44c13 Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Wed, 31 Oct 2018 23:37:59 +0000
Subject: [PATCH] Feedback from PR

---
 src/react-components/ui-root.js | 2 +-
 src/scene-entry-manager.js      | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js
index 422c3b847..77622b57f 100644
--- a/src/react-components/ui-root.js
+++ b/src/react-components/ui-root.js
@@ -455,7 +455,7 @@ class UIRoot extends Component {
     if (!this.props.forcedVREntryType || !this.props.forcedVREntryType.endsWith("_now")) {
       this.goToEntryStep(ENTRY_STEPS.audio_setup);
     } else {
-      this.onAudioReadyButton(); // Need to wait otherwise input doesn't work :/
+      this.onAudioReadyButton();
     }
   };
 
diff --git a/src/scene-entry-manager.js b/src/scene-entry-manager.js
index 76835383a..f109520ad 100644
--- a/src/scene-entry-manager.js
+++ b/src/scene-entry-manager.js
@@ -218,8 +218,7 @@ export default class SceneEntryManager {
     });
 
     document.addEventListener("paste", e => {
-      if ((e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA") && document.activeElement === e.target)
-        return;
+      if (e.matches("input, textarea") && document.activeElement === e.target) return;
 
       const url = e.clipboardData.getData("text");
       const files = e.clipboardData.files && e.clipboardData.files;
-- 
GitLab