ms-types 0.6.5 → 0.6.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.
package/package.json
CHANGED
package/types/ime.d.ts
CHANGED
|
@@ -11,6 +11,15 @@ declare namespace ime {
|
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
13
|
function isOk(): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 自动切换到 API 键盘
|
|
16
|
+
* @returns {boolean} 如果成功切换并可用返回 true,否则返回 false
|
|
17
|
+
* @example
|
|
18
|
+
* if (ime.autoSwitchApiKeyboard()) {
|
|
19
|
+
* logi("已切换到 API 键盘")
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
function autoSwitchApiKeyboard(): boolean;
|
|
14
23
|
/**
|
|
15
24
|
* 获取当前输入框的文本内容
|
|
16
25
|
* @returns {string} 当前输入框的完整文本
|
|
@@ -12,6 +12,15 @@ declare namespace $输入法 {
|
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
function 是否可用(): 布尔值;
|
|
15
|
+
/**
|
|
16
|
+
* 自动切换到 API 键盘
|
|
17
|
+
* @returns 如果成功切换并可用返回 true,否则返回 false
|
|
18
|
+
* @example
|
|
19
|
+
* if ($输入法.自动切换到API键盘()) {
|
|
20
|
+
* $打印信息日志("已切换到 API 键盘")
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
function 自动切换到API键盘(): 布尔值;
|
|
15
24
|
/**
|
|
16
25
|
* 获取当前输入框的文本内容
|
|
17
26
|
* @returns 当前输入框的完整文本
|