mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Added back Advanced Input.
This commit is contained in:
@@ -64,12 +64,19 @@ module.exports = function ControlServiceFactory(
|
||||
|
||||
function keySender(type, fixedKey) {
|
||||
return function(key) {
|
||||
var mapped = fixedKey || keyCodes[key]
|
||||
if (mapped) {
|
||||
if (typeof key === 'string') {
|
||||
sendOneWay(type, {
|
||||
key: mapped
|
||||
key: key
|
||||
})
|
||||
}
|
||||
else {
|
||||
var mapped = fixedKey || keyCodes[key]
|
||||
if (mapped) {
|
||||
sendOneWay(type, {
|
||||
key: mapped
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user