Fix copying.

This commit is contained in:
Simo Kinnunen
2014-05-12 18:34:52 +09:00
parent f51abd05d2
commit 7f94b0beef
3 changed files with 9 additions and 5 deletions

View File

@@ -423,16 +423,20 @@ module.exports = function(options) {
joinChannel(responseChannel)
push.send([
channel
, wireutil.envelope(new wire.PasteMessage(
data.text
))
, wireutil.transaction(
responseChannel
, new wire.PasteMessage(data.text)
)
])
})
.on('clipboard.copy', function(channel, responseChannel) {
joinChannel(responseChannel)
push.send([
channel
, wireutil.envelope(new wire.CopyMessage())
, wireutil.transaction(
responseChannel
, new wire.CopyMessage()
)
])
})
.on('device.identify', function(channel, responseChannel) {