From 77e1e174a61d6aca0fa3eef0496edb58cf1d8259 Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Tue, 17 Oct 2023 18:15:30 +0200 Subject: [PATCH] Prevent the chat bar from popping up when VR headset is on --- scripts/communityScripts/chat/FloofChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/communityScripts/chat/FloofChat.js b/scripts/communityScripts/chat/FloofChat.js index 3e786d9827..84b18860b4 100644 --- a/scripts/communityScripts/chat/FloofChat.js +++ b/scripts/communityScripts/chat/FloofChat.js @@ -695,7 +695,7 @@ function keyPressEvent(event) { if (event.key === H_KEY && !event.isAutoRepeat && event.isControl) { toggleMainChatWindow() } - if (event.key === ENTER_KEY && !event.isAutoRepeat && !visible) { + if (event.key === ENTER_KEY && !event.isAutoRepeat && !visible && !HMD.active) { setVisible(true); } if (event.key === ESC_KEY && !event.isAutoRepeat && visible) {