We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f831ae commit 2c7f399Copy full SHA for 2c7f399
tasks/instructions/keys.js
@@ -6,10 +6,14 @@ module.exports = {
6
},
7
8
perform: function (grunt, target, client, command) {
9
- const keys = command.keys
10
- const message = Array.isArray(keys)
+ let keys = command.keys
+ const separateKeys = Array.isArray(keys)
11
+ const message = separateKeys
12
? 'Send keys "' + keys.join('", "') + '".'
- : 'Send test "' + keys + '".'
13
+ : 'Send text "' + keys + '".'
14
+ if (!separateKeys) {
15
+ keys = keys.split('')
16
+ }
17
grunt.verbose.writeln(message)
18
return client.keys(keys)
19
}
0 commit comments