mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 22:59:45 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
d0dad2ddc6
commit
a0a8614498
@ -105,7 +105,7 @@ inputmethod.switchInputMethod({packageName:"com.example.kikakeyboard", methodId:
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 切换输入法promise
|
// 切换输入法promise
|
||||||
await inputMethod.switchInputMethod({packageName:"com.example.kikakeyboard", methodId:"com.example.kikakeyboard"}).then((res) => {
|
await inputMethod.switchInputMethod({packageName:"com.example.kikakeyboard", methodId:"com.example.kikakeyboard"}).then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
console.info("Success to switchInputMethod.(promise)");
|
console.info("Success to switchInputMethod.(promise)");
|
||||||
} else {
|
} else {
|
||||||
@ -136,7 +136,7 @@ await inputMethod.switchInputMethod({packageName:"com.example.kikakeyboard", met
|
|||||||
</tr>
|
</tr>
|
||||||
<tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>showSoftKeyboard(callback: AsyncCallback<void>);</p>
|
<tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>showSoftKeyboard(callback: AsyncCallback<void>);</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p18761104812149"><a name="p18761104812149"></a><a name="p18761104812149"></a>显示软键盘,使用promise形式返回结果。参数个数为0,否则抛出异常</p>
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p18761104812149"><a name="p18761104812149"></a><a name="p18761104812149"></a>显示软键盘,使用promise形式返回结果。参数个数为1,否则抛出异常</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>stopInput(): Promise<void>;</p>
|
<tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>stopInput(): Promise<void>;</p>
|
||||||
@ -145,7 +145,7 @@ await inputMethod.switchInputMethod({packageName:"com.example.kikakeyboard", met
|
|||||||
</td>
|
</td>
|
||||||
</tr><tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>hideSoftKeyboard(callback: AsyncCallback<void>);</p>
|
</tr><tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>hideSoftKeyboard(callback: AsyncCallback<void>);</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p18761104812149"><a name="p18761104812149"></a><a name="p18761104812149"></a>隐藏软键盘,使用promise形式返回结果。参数个数为0,否则抛出异常</p>
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.2 "><p id="p18761104812149"><a name="p18761104812149"></a><a name="p18761104812149"></a>隐藏软键盘,使用promise形式返回结果。参数个数为1,否则抛出异常</p>
|
||||||
</td>
|
</td>
|
||||||
</tr><tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>hideSoftKeyboard(): Promise<void>;</p>
|
</tr><tr id="row204321219393"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.2.3.1.1 "><p id="p1893413268144"><a name="p1893413268144"></a><a name="p1893413268144"></a>hideSoftKeyboard(): Promise<void>;</p>
|
||||||
</td>
|
</td>
|
||||||
@ -755,7 +755,7 @@ client.deleteForward(length, (err, result) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 删除光标前固定长度的文本promise
|
// 删除光标前固定长度的文本promise
|
||||||
await client.deleteForward(length).then((res) => {
|
await client.deleteForward(length).then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
console.info("Success to deleteForward.(promise) ");
|
console.info("Success to deleteForward.(promise) ");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user