From bcb1eff3080d6b3ec5192ccff2578309fb0c53d6 Mon Sep 17 00:00:00 2001
From: Ramon Souza <contato@ramonsouza.com>
Date: Tue, 22 Jun 2021 15:24:24 -0300
Subject: [PATCH] fix private chat shortcuts

---
 .../imports/ui/components/chat/component.jsx                | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bigbluebutton-html5/imports/ui/components/chat/component.jsx b/bigbluebutton-html5/imports/ui/components/chat/component.jsx
index 898a82ec41..2ed8d20b47 100755
--- a/bigbluebutton-html5/imports/ui/components/chat/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/chat/component.jsx
@@ -55,8 +55,8 @@ const Chat = (props) => {
 
   const userSentMessage = UserSentMessageCollection.findOne({ userId: Auth.userID, sent: true });
 
-  const HIDE_CHAT_AK = shortcuts.hidePrivateChat;
-  const CLOSE_CHAT_AK = shortcuts.closePrivateChat;
+  const HIDE_CHAT_AK = shortcuts.hideprivatechat;
+  const CLOSE_CHAT_AK = shortcuts.closeprivatechat;
   ChatLogger.debug('ChatComponent::render', props);
   return (
     <div
@@ -75,7 +75,7 @@ const Chat = (props) => {
               window.dispatchEvent(new Event('panelChanged'));
             }}
             aria-label={intl.formatMessage(intlMessages.hideChatLabel, { 0: title })}
-            accessKey={HIDE_CHAT_AK}
+            accessKey={chatID !== 'public' ? HIDE_CHAT_AK : null}
             label={title}
             icon="left_arrow"
             className={styles.hideBtn}
-- 
GitLab