浏览代码

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

j8
Calinteodor 4 年前
父节点
当前提交
f991a93afd
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      react/features/toolbox/components/web/Toolbox.js

+ 7
- 0
react/features/toolbox/components/web/Toolbox.js 查看文件

@@ -626,6 +626,13 @@ class Toolbox extends Component<Props> {
626 626
                 enable: !this.props._chatOpen
627 627
             }));
628 628
 
629
+        // Checks if there was any text selected by the user.
630
+        // Used for when we press simultaneously keys for copying
631
+        // text messages from the chat board
632
+        if (window.getSelection().toString() !== '') {
633
+            return false;
634
+        }
635
+
629 636
         this._doToggleChat();
630 637
     }
631 638
 

正在加载...
取消
保存