@loadmill/droid-cua 2.32.0 → 2.33.0
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.
|
@@ -37,6 +37,7 @@ export function normalizeMobileKeypress(platform, keys = []) {
|
|
|
37
37
|
ESCAPE: { semanticKey: "BACK", logText: "Pressing Back" },
|
|
38
38
|
BACK: { semanticKey: "BACK", logText: "Pressing Back" },
|
|
39
39
|
HOME: { semanticKey: "HOME", logText: "Pressing Home" },
|
|
40
|
+
APP_SWITCH: { semanticKey: "APP_SWITCH", logText: "Pressing Recent Apps" },
|
|
40
41
|
ENTER: { semanticKey: "ENTER", logText: "Pressing Enter" },
|
|
41
42
|
RETURN: { semanticKey: "ENTER", logText: "Pressing Enter" },
|
|
42
43
|
BACKSPACE: { semanticKey: "BACKSPACE", logText: "Pressing Backspace" },
|
|
@@ -58,6 +59,7 @@ export function getAndroidAdbTransport(normalized) {
|
|
|
58
59
|
const transportMap = {
|
|
59
60
|
BACK: "KEYCODE_BACK",
|
|
60
61
|
HOME: "KEYCODE_HOME",
|
|
62
|
+
APP_SWITCH: "KEYCODE_APP_SWITCH",
|
|
61
63
|
ENTER: "KEYCODE_ENTER",
|
|
62
64
|
BACKSPACE: "KEYCODE_DEL",
|
|
63
65
|
SPACE: "KEYCODE_SPACE"
|
|
@@ -75,6 +77,7 @@ export function getCloudAndroidTransport(normalized) {
|
|
|
75
77
|
const transportMap = {
|
|
76
78
|
BACK: 4,
|
|
77
79
|
HOME: 3,
|
|
80
|
+
APP_SWITCH: 187,
|
|
78
81
|
ENTER: 66,
|
|
79
82
|
BACKSPACE: 67,
|
|
80
83
|
SPACE: 62
|
|
@@ -243,6 +243,7 @@ function buildMobileBaseSystemPrompt(deviceInfo, options = {}) {
|
|
|
243
243
|
|
|
244
244
|
Mobile-Specific Notes:
|
|
245
245
|
- HOME key returns to the home screen
|
|
246
|
+
- On Android, APP_SWITCH opens Recent Apps
|
|
246
247
|
- On Android, ESC key maps to Back
|
|
247
248
|
- On iOS, ESC has no effect; use visible on-screen controls instead
|
|
248
249
|
- Never use CTRL, CMD, ALT, OPTION, or SHIFT in a keypress action
|