Pārlūkot izejas kodu

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

master
Calinteodor 4 gadus atpakaļ
vecāks
revīzija
f991a93afd
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7
    0
      react/features/toolbox/components/web/Toolbox.js

+ 7
- 0
react/features/toolbox/components/web/Toolbox.js Parādīt failu

626
                 enable: !this.props._chatOpen
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
         this._doToggleChat();
636
         this._doToggleChat();
630
     }
637
     }
631
 
638
 

Notiek ielāde…
Atcelt
Saglabāt