From 0d1becb56b6d4ec338352351162f5f45cba7db3c Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Thu, 21 Apr 2022 19:05:48 +0300 Subject: [PATCH] Do not copy monospace text by right click --- src/components/chat/bubbles.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index 5b7adcca..78767a7a 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -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);