fix(toolbox) Copying with Ctrl+C toggles the chat. Fixes #9380
This commit is contained in:
parent
0bd45a75d2
commit
f991a93afd
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue