deeke-script-app 1.7.5 → 1.7.6
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.
|
@@ -22,6 +22,33 @@ interface KeyBoards {
|
|
|
22
22
|
* 删除文本框最后一个字符
|
|
23
23
|
*/
|
|
24
24
|
public delete():boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 隐藏键盘
|
|
28
|
+
*/
|
|
29
|
+
public hide(): boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 发送按键事件,支持各种按键
|
|
33
|
+
* 注意:输入法只能发送文本输入相关的按键,系统级按键(如HOME、BACK、POWER等)无法通过输入法发送
|
|
34
|
+
* @param key 按键代码,可以是字符串(如 "ENTER")或数字(如 KeyBoards.KEYCODE.ENTER)
|
|
35
|
+
*/
|
|
36
|
+
public pressKey(key: string | number): boolean;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 发送Enter键(回车键)
|
|
40
|
+
*/
|
|
41
|
+
public pressEnter(): boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 发送Tab键(制表符)
|
|
45
|
+
*/
|
|
46
|
+
public pressTab(): boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 发送空格键
|
|
50
|
+
*/
|
|
51
|
+
public pressSpace(): boolean;
|
|
25
52
|
}
|
|
26
53
|
|
|
27
54
|
export { };
|