提交 f4ddd443 编写于 作者: H Hollokin

【输入法框架】资料示例代码缺失参数补充。

Signed-off-by: NHollokin <taoyuxin2@huawei.com>
上级 a66740dd
...@@ -596,7 +596,7 @@ try { ...@@ -596,7 +596,7 @@ try {
} }
try { try {
inputMethodEngine.getInputMethodAbility().destroyPanel((err) => { inputMethodEngine.getInputMethodAbility().destroyPanel(globalThis.inputMethodPanel, (err) => {
if(err !== undefined) { if(err !== undefined) {
console.log('Failed to destroy panel, err: ' + JSON.stringify(err)); console.log('Failed to destroy panel, err: ' + JSON.stringify(err));
return; return;
...@@ -648,7 +648,7 @@ try { ...@@ -648,7 +648,7 @@ try {
} }
try { try {
inputMethodEngine.getInputMethodAbility().destroyPanel().then(() => { inputMethodEngine.getInputMethodAbility().destroyPanel(globalThis.inputMethodPanel).then(() => {
console.log('Succeed in destroying panel.'); console.log('Succeed in destroying panel.');
}).catch((err) => { }).catch((err) => {
console.log('Failed to destroy panel, err: ' + JSON.stringify(err)); console.log('Failed to destroy panel, err: ' + JSON.stringify(err));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册