Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(toolbox) Copying with Ctrl+C toggles the chat. Fixes #9380

Calinteodorf991a93afdc4
diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js
index ced8e89179..96a2af5b84 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<Props> {
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();
}