@midscene/android 0.30.6-beta-20251021111532.0 → 0.30.6-beta-20251021121032.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.
package/dist/es/index.mjs CHANGED
@@ -104,8 +104,11 @@ class AndroidDevice {
104
104
  }),
105
105
  defineActionKeyboardPress(async (param)=>{
106
106
  const key = param.keyName;
107
- const keyToPress = Array.isArray(key) ? key.join('+') : key;
108
- await this.keyboardPress(keyToPress);
107
+ if (Array.isArray(key)) {
108
+ const keyToPress = key[key.length - 1];
109
+ console.warn(`[Android] Key combinations are not supported. Using last key: "${keyToPress}"`, 'Original input:', key);
110
+ await this.keyboardPress(keyToPress);
111
+ } else await this.keyboardPress(key);
109
112
  }),
110
113
  defineAction({
111
114
  name: 'AndroidBackButton',
package/dist/lib/index.js CHANGED
@@ -150,8 +150,11 @@ class AndroidDevice {
150
150
  }),
151
151
  (0, device_namespaceObject.defineActionKeyboardPress)(async (param)=>{
152
152
  const key = param.keyName;
153
- const keyToPress = Array.isArray(key) ? key.join('+') : key;
154
- await this.keyboardPress(keyToPress);
153
+ if (Array.isArray(key)) {
154
+ const keyToPress = key[key.length - 1];
155
+ console.warn(`[Android] Key combinations are not supported. Using last key: "${keyToPress}"`, 'Original input:', key);
156
+ await this.keyboardPress(keyToPress);
157
+ } else await this.keyboardPress(key);
155
158
  }),
156
159
  (0, device_namespaceObject.defineAction)({
157
160
  name: 'AndroidBackButton',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/android",
3
- "version": "0.30.6-beta-20251021111532.0",
3
+ "version": "0.30.6-beta-20251021121032.0",
4
4
  "description": "Android automation library for Midscene",
5
5
  "keywords": [
6
6
  "Android UI automation",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "appium-adb": "12.12.1",
30
- "@midscene/core": "0.30.6-beta-20251021111532.0",
31
- "@midscene/shared": "0.30.6-beta-20251021111532.0"
30
+ "@midscene/core": "0.30.6-beta-20251021121032.0",
31
+ "@midscene/shared": "0.30.6-beta-20251021121032.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@rslib/core": "^0.11.2",
@@ -37,7 +37,7 @@
37
37
  "typescript": "^5.8.3",
38
38
  "tsx": "^4.19.2",
39
39
  "vitest": "3.0.5",
40
- "@midscene/playground": "0.30.6-beta-20251021111532.0"
40
+ "@midscene/playground": "0.30.6-beta-20251021121032.0"
41
41
  },
42
42
  "license": "MIT",
43
43
  "scripts": {