Browse Source

Do not copy monospace text by right click

master
Eduard Kuzmenko 3 years ago
parent
commit
0d1becb56b
  1. 2
      src/components/chat/bubbles.ts

2
src/components/chat/bubbles.ts

@ -636,6 +636,8 @@ export default class ChatBubbles { @@ -636,6 +636,8 @@ export default class ChatBubbles {
// this.listenerSetter.add(this.bubblesContainer)('click', this.onBubblesClick/* , {capture: true, passive: false} */);
this.listenerSetter.add(this.scrollable.container)('mousedown', (e) => {
if(e.button !== 0) return;
const code: HTMLElement = findUpTag(e.target, 'CODE');
if(code) {
cancelEvent(e);

Loading…
Cancel
Save