paste control with clipboard.

This commit is contained in:
Miroslav Šedivý 2022-04-28 23:58:31 +02:00
parent 0aae212c1f
commit 968082d7b4

View File

@ -57,8 +57,8 @@ export class NekoControl extends EventEmitter<NekoControlEvents> {
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() {