From 0aae212c1fde1d491dd888db85a5ff6f0d002fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 28 Apr 2022 23:25:33 +0200 Subject: [PATCH] sync user's clipboard. --- src/component/internal/messages.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/internal/messages.ts b/src/component/internal/messages.ts index cf4c10f8..3806498d 100644 --- a/src/component/internal/messages.ts +++ b/src/component/internal/messages.ts @@ -269,6 +269,7 @@ export class NekoMessages extends EventEmitter { protected [EVENT.CLIPBOARD_UPDATED]({ text }: message.ClipboardData) { this._localLog.debug(`EVENT.CLIPBOARD_UPDATED`) Vue.set(this._state.control, 'clipboard', { text }) + navigator.clipboard.writeText(text) // sync user's clipboard this.emit('room.clipboard.updated', text) }