From 968082d7b4d5196719106cc0d6296bcf29012cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 28 Apr 2022 23:58:31 +0200 Subject: [PATCH] paste control with clipboard. --- src/component/internal/control.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/internal/control.ts b/src/component/internal/control.ts index 974ea6f0..775e6cda 100644 --- a/src/component/internal/control.ts +++ b/src/component/internal/control.ts @@ -57,8 +57,8 @@ export class NekoControl extends EventEmitter { this._connection.websocket.send(EVENT.CONTROL_COPY) } - public paste() { - this._connection.websocket.send(EVENT.CONTROL_PASTE) + public paste(text?: string) { + this._connection.websocket.send(EVENT.CONTROL_PASTE, { text } as message.ClipboardData) } public selectAll() {