mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 10:52:41 +02:00
join plain text and rich text to one struct.
This commit is contained in:
parent
5c9a57ee91
commit
546cd608c3
6 changed files with 63 additions and 62 deletions
|
@ -16,5 +16,8 @@ func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message
|
|||
return nil
|
||||
}
|
||||
|
||||
return h.desktop.ClipboardSetPlainText(payload.Text)
|
||||
return h.desktop.ClipboardSetText(types.ClipboardText{
|
||||
Text: payload.Text,
|
||||
// TODO: Send HTML?
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue