mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
Refactor InputAgent into STFService. Support copypasting (only pasting implemented in the UI right now though).
This commit is contained in:
parent
514fc3554d
commit
09eb8c539d
13 changed files with 379 additions and 50 deletions
|
@ -347,6 +347,24 @@ module.exports = function(options) {
|
|||
])
|
||||
})
|
||||
// Transactions
|
||||
.on('clipboard.paste', function(channel, responseChannel, data) {
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.envelope(new wire.PasteMessage(
|
||||
data.text
|
||||
))
|
||||
])
|
||||
})
|
||||
.on('clipboard.copy', function(channel, responseChannel, data) {
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.envelope(new wire.CopyMessage(
|
||||
data.text
|
||||
))
|
||||
])
|
||||
})
|
||||
.on('device.identify', function(channel, responseChannel) {
|
||||
push.send([
|
||||
channel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue