mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-21 13:07:04 +02:00
update clipboard WS.
This commit is contained in:
parent
2c210f3cf1
commit
e93d167be6
6 changed files with 27 additions and 27 deletions
|
@ -82,16 +82,6 @@ func (h *MessageHandlerCtx) controlGive(session types.Session, payload *message.
|
|||
return nil
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) controlClipboard(session types.Session, payload *message.Clipboard) error {
|
||||
if !session.IsHost() {
|
||||
h.logger.Debug().Str("id", session.ID()).Msg("is not the host")
|
||||
return nil
|
||||
}
|
||||
|
||||
h.desktop.WriteClipboard(payload.Text)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) controlKeyboard(session types.Session, payload *message.Keyboard) error {
|
||||
if !session.IsHost() {
|
||||
h.logger.Debug().Str("id", session.ID()).Msg("is not the host")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue