From f991a93afdc47c3bae39758d14ad074d229ee48e Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Wed, 16 Jun 2021 19:36:36 +0300 Subject: [PATCH] fix(toolbox) Copying with Ctrl+C toggles the chat. Fixes #9380 --- react/features/toolbox/components/web/Toolbox.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index ced8e8917..96a2af5b8 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -626,6 +626,13 @@ class Toolbox extends Component { enable: !this.props._chatOpen })); + // Checks if there was any text selected by the user. + // Used for when we press simultaneously keys for copying + // text messages from the chat board + if (window.getSelection().toString() !== '') { + return false; + } + this._doToggleChat(); }