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() {