Procházet zdrojové kódy

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

j8
Calinteodor před 4 roky
rodič
revize
f991a93afd
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 7
- 0
react/features/toolbox/components/web/Toolbox.js Zobrazit soubor

@@ -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
 

Načítá se…
Zrušit
Uložit