testdriverai 5.7.6 → 5.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.js +1 -1
- package/lib/commands.js +2 -2
- package/lib/focus-application.js +1 -8
- package/package.json +1 -1
package/agent.js
CHANGED
package/lib/commands.js
CHANGED
|
@@ -458,8 +458,8 @@ let commands = {
|
|
|
458
458
|
// remove any modifier keys from the inputKeys array and put them in a new array
|
|
459
459
|
inputKeys.forEach((key) => {
|
|
460
460
|
// change command to control on windows
|
|
461
|
-
if (key === "command"
|
|
462
|
-
key =
|
|
461
|
+
if (key === "command" || key === "control") {
|
|
462
|
+
key = commandOrControl;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
if (!config.TD_VM && modifierKeys.includes(key)) {
|
package/lib/focus-application.js
CHANGED
|
@@ -38,13 +38,6 @@ end tell`;
|
|
|
38
38
|
// set value of attribute "AXMinimized" of every window of application process "${windowName}" to true
|
|
39
39
|
// end tell`;
|
|
40
40
|
|
|
41
|
-
// const appleScriptActivate = (windowName) => `
|
|
42
|
-
// tell application "${windowName}"
|
|
43
|
-
// reopen
|
|
44
|
-
// activate
|
|
45
|
-
// end tell
|
|
46
|
-
// `;
|
|
47
|
-
|
|
48
41
|
const appleScriptActivate = (windowName) => `
|
|
49
42
|
tell application "${windowName}"
|
|
50
43
|
reopen
|
|
@@ -101,7 +94,7 @@ async function showTerminal(appName) {
|
|
|
101
94
|
try {
|
|
102
95
|
if (platform() == "mac") {
|
|
103
96
|
await execSync(`osascript -e '${appleScriptActivate(appName)}'`, { stdio: [] });
|
|
104
|
-
|
|
97
|
+
await execSync(`osascript -e '${appleScriptSetFrontmost(appName)}'`, { stdio: [] });
|
|
105
98
|
|
|
106
99
|
} else if (platform() == "windows") {
|
|
107
100
|
return runPwsh(appName, "Restore");
|